nitro-react/src/events/friends/FriendsSendFriendRequestEvent.ts

21 lines
441 B
TypeScript
Raw Normal View History

2021-09-16 06:37:17 +02:00
import { FriendsEvent } from './FriendsEvent';
2021-07-08 10:25:57 +02:00
2021-09-16 06:37:17 +02:00
export class FriendsSendFriendRequestEvent extends FriendsEvent
2021-07-08 10:25:57 +02:00
{
public static SEND_FRIEND_REQUEST: string = 'FLSFRE_SEND_FRIEND_REQUEST';
private _userId: number;
constructor(userId: number)
{
2021-09-16 06:37:17 +02:00
super(FriendsSendFriendRequestEvent.SEND_FRIEND_REQUEST);
2021-07-08 10:25:57 +02:00
this._userId = userId;
}
public get userId(): number
{
return this._userId;
}
}