/*
* Azisaba Graph API
*
* An API for connecting and sharing data across the Azisaba Network.
*
* The version of the OpenAPI document: 0.0.1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// FriendAddedEvent : Represents an event indicating that a friendship was added. Requires the `stream:read` scope and either the `players:read` or `players:read-details` scope to receive this event.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FriendAddedEvent {
#[serde(rename = "data")]
pub data: Box<models::FriendAddedEventData>,
}
impl FriendAddedEvent {
/// Represents an event indicating that a friendship was added. Requires the `stream:read` scope and either the `players:read` or `players:read-details` scope to receive this event.
pub fn new(data: models::FriendAddedEventData) -> FriendAddedEvent {
FriendAddedEvent {
data: Box::new(data),
}
}
}