-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNotification.cs
48 lines (44 loc) · 1.72 KB
/
Notification.cs
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
40
41
42
43
44
45
46
47
48
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Coflnet.Sky.Subscriptions
{
public partial class NotificationService
{
public class Notification
{
public string title;
public Dictionary<string,string> data;
public string click_action;
public string icon;
public string image;
public string body;
public Notification(string title, string body, string click_action, string icon, string image, Dictionary<string,string> data)
{
this.title = title;
this.data = data;
this.click_action = click_action;
this.icon = icon;
this.image = image;
this.body = body;
}
public override bool Equals(object obj)
{
return obj is Notification notification &&
title == notification.title &&
data == notification.data &&
click_action == notification.click_action &&
icon == notification.icon &&
image == notification.image &&
body == notification.body;
}
public override int GetHashCode()
{
int hashCode = 246475487;
hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(title);
hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(click_action);
hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(body);
return hashCode;
}
}
}
}