/*
* 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};
/// FriendAddedEventData : The data associated with the friendship.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FriendAddedEventData {
#[serde(rename = "player")]
pub player: Box<models::Player>,
#[serde(rename = "friend")]
pub friend: Box<models::Player>,
}
impl FriendAddedEventData {
/// The data associated with the friendship.
pub fn new(player: models::Player, friend: models::Player) -> FriendAddedEventData {
FriendAddedEventData {
player: Box::new(player),
friend: Box::new(friend),
}
}
}