-
Notifications
You must be signed in to change notification settings - Fork 5
/
ban.go
39 lines (34 loc) · 1.1 KB
/
ban.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
// This is licensed software from AccelByte Inc, for limitations
// and restrictions contact your company contract manager.
package model
// UserBannedNotification is the response models
// for when user got banned
type UserBannedNotification struct {
*BaseResponse
UserID string `json:"userId"`
Namespace string `json:"namespace"`
Ban string `json:"ban"`
EndDate string `json:"endDate"`
Reason string `json:"reason"`
Enable bool `json:"enable"`
}
// Type implements Message interface
func (UserBannedNotification) Type() string {
return TypeUserBannedNotification
}
// UserUnbannedNotification is the response models
// for when user is unbanned
type UserUnbannedNotification struct {
*BaseResponse
UserID string `json:"userId"`
Namespace string `json:"namespace"`
Ban string `json:"ban"`
EndDate string `json:"endDate"`
Reason string `json:"reason"`
Enable bool `json:"enable"`
}
// Type implements Message interface
func (UserUnbannedNotification) Type() string {
return TypeUserUnbannedNotification
}