Skip to main content

azisaba_graph/models/
friend_request_added_event_data.rs

1/*
2 * Azisaba Graph API
3 *
4 * An API for connecting and sharing data across the Azisaba Network.
5 *
6 * The version of the OpenAPI document: 0.0.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// FriendRequestAddedEventData : The data associated with the friend request.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FriendRequestAddedEventData {
17    #[serde(rename = "sender")]
18    pub sender: Box<models::Player>,
19    #[serde(rename = "receiver")]
20    pub receiver: Box<models::Player>,
21}
22
23impl FriendRequestAddedEventData {
24    /// The data associated with the friend request.
25    pub fn new(sender: models::Player, receiver: models::Player) -> FriendRequestAddedEventData {
26        FriendRequestAddedEventData {
27            sender: Box::new(sender),
28            receiver: Box::new(receiver),
29        }
30    }
31}
32