-
Notifications
You must be signed in to change notification settings - Fork 6
/
ban.go
34 lines (30 loc) · 1001 Bytes
/
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
// 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"`
}
// 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
}