Skip to content
This repository was archived by the owner on Apr 2, 2023. It is now read-only.

Commit 6423d7c

Browse files
committed
Add configuration support for ASP.NETCore.
1 parent 3c715dc commit 6423d7c

File tree

7 files changed

+79
-83
lines changed

7 files changed

+79
-83
lines changed

SDK/ClickAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public Dictionary<string,object> toJson()
3838
}
3939

4040

41-
public Boolean isValid()
41+
public bool isValid()
4242
{
4343
if (m_actionType < TYPE_ACTIVITY || m_actionType > TYPE_INTENT)
4444
return false;

SDK/Message.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ public Message()
3737
this.m_pushID = 0;
3838
}
3939

40-
public void setTitle(String title)
40+
public void setTitle(string title)
4141
{
4242
this.m_title = title;
4343
}
44-
public void setContent(String content)
44+
public void setContent(string content)
4545
{
4646
this.m_content = content;
4747
}
@@ -53,11 +53,11 @@ public int getExpireTime()
5353
{
5454
return this.m_expireTime;
5555
}
56-
public void setSendTime(String sendTime)
56+
public void setSendTime(string sendTime)
5757
{
5858
this.m_sendTime = sendTime;
5959
}
60-
public String getSendTime()
60+
public string getSendTime()
6161
{
6262
return this.m_sendTime;
6363
}
@@ -99,11 +99,11 @@ public void setAction(ClickAction action)
9999
{
100100
this.m_action = action;
101101
}
102-
public void setCustom(Dictionary<String, Object> custom)
102+
public void setCustom(Dictionary<string, object> custom)
103103
{
104104
this.m_custom = custom;
105105
}
106-
public void setRaw(String raw)
106+
public void setRaw(string raw)
107107
{
108108
this.m_raw = raw;
109109
}
@@ -133,7 +133,7 @@ public int getPushID()
133133
return m_pushID;
134134
}
135135

136-
public Boolean isValid()
136+
public bool isValid()
137137
{
138138
if (m_raw.Length != 0)
139139
return true;

SDK/MessageiOS.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public int badgeType()
196196
return m_badgeType;
197197
}
198198

199-
public Boolean isValid()
199+
public bool isValid()
200200
{
201201
if (m_raw.Length != 0)
202202
return true;

SDK/Style.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,20 @@ public int getStyleId()
8282
{
8383
return m_styleId;
8484
}
85-
public String getRingRaw()
85+
public string getRingRaw()
8686
{
8787
return m_ringRaw;
8888
}
89-
public String getIconRes()
89+
public string getIconRes()
9090
{
9191
return m_iconRes;
9292
}
93-
public String getSmallIcon()
93+
public string getSmallIcon()
9494
{
9595
return m_smallIcon;
9696
}
9797

98-
public Boolean isValid()
98+
public bool isValid()
9999
{
100100
if (m_ring < 0 || m_ring > 1) return false;
101101
if (m_vibrate < 0 || m_vibrate > 1) return false;

SDK/TimeInterval.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public TimeInterval(int startHour, int startMin, int endHour, int endMin)
1919
this.m_endMin = endMin;
2020
}
2121

22-
public Boolean isValid()
22+
public bool isValid()
2323
{
2424
if (this.m_startHour >= 0 && this.m_startHour <= 23 &&
2525
this.m_startMin >= 0 && this.m_startMin <= 59 &&

0 commit comments

Comments
 (0)