Skip to content

Commit

Permalink
Merge pull request #10 from Viva-con-Agua/update/notfication_data
Browse files Browse the repository at this point in the history
added name to notificationdata
  • Loading branch information
deinelieblings authored Sep 22, 2023
2 parents 724783d + 59e0ee8 commit f6f03f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type (
Service string `json:"service" bson:"service"`
Scope string `json:"scope" bson:"scope"`
Lang string `json:"lang" bson:"lang"`
Name string `json:"name" bson:"name"`
Content vmod.Content `json:"content" bson:"content"`
User vmod.User `json:"user" bson:"user"`
OriginUserID string `json:"origin_user_id" bson:"origin_user_id"`
Expand All @@ -20,6 +21,7 @@ type (
Service string `json:"service" bson:"service"`
Scope string `json:"scope" bson:"scope"`
Lang string `json:"lang" bson:"lang"`
Name string `json:"name" bson:"name"`
Content vmod.Content `json:"content" bson:"content"`
User vmod.User `json:"user" bson:"user"`
OriginUserID string `json:"origin_user_id" bson:"origin_user_id"`
Expand All @@ -29,10 +31,11 @@ type (
}
)

func NewMNotificationData(to string, service string, scope string, lang string, user_id string) *NotificationData {
func NewMNotificationData(to string, service string, name string, scope string, lang string, user_id string) *NotificationData {
return &NotificationData{
To: to,
Service: service,
Name: name,
Scope: scope,
Lang: lang,
OriginUserID: user_id,
Expand All @@ -43,6 +46,7 @@ func (i *NotificationData) Response() *NotificationResponse {
return &NotificationResponse{
To: i.To,
Service: i.Service,
Name: i.Name,
Scope: i.Scope,
Lang: i.Lang,
Content: i.Content,
Expand Down

0 comments on commit f6f03f1

Please sign in to comment.