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

Commit

Permalink
Add configuration support for ASP.NETCore.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolphinsimon committed Nov 26, 2019
1 parent 3c715dc commit 6423d7c
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 83 deletions.
2 changes: 1 addition & 1 deletion SDK/ClickAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public Dictionary<string,object> toJson()
}


public Boolean isValid()
public bool isValid()
{
if (m_actionType < TYPE_ACTIVITY || m_actionType > TYPE_INTENT)
return false;
Expand Down
14 changes: 7 additions & 7 deletions SDK/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ public Message()
this.m_pushID = 0;
}

public void setTitle(String title)
public void setTitle(string title)
{
this.m_title = title;
}
public void setContent(String content)
public void setContent(string content)
{
this.m_content = content;
}
Expand All @@ -53,11 +53,11 @@ public int getExpireTime()
{
return this.m_expireTime;
}
public void setSendTime(String sendTime)
public void setSendTime(string sendTime)
{
this.m_sendTime = sendTime;
}
public String getSendTime()
public string getSendTime()
{
return this.m_sendTime;
}
Expand Down Expand Up @@ -99,11 +99,11 @@ public void setAction(ClickAction action)
{
this.m_action = action;
}
public void setCustom(Dictionary<String, Object> custom)
public void setCustom(Dictionary<string, object> custom)
{
this.m_custom = custom;
}
public void setRaw(String raw)
public void setRaw(string raw)
{
this.m_raw = raw;
}
Expand Down Expand Up @@ -133,7 +133,7 @@ public int getPushID()
return m_pushID;
}

public Boolean isValid()
public bool isValid()
{
if (m_raw.Length != 0)
return true;
Expand Down
2 changes: 1 addition & 1 deletion SDK/MessageiOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public int badgeType()
return m_badgeType;
}

public Boolean isValid()
public bool isValid()
{
if (m_raw.Length != 0)
return true;
Expand Down
8 changes: 4 additions & 4 deletions SDK/Style.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,20 @@ public int getStyleId()
{
return m_styleId;
}
public String getRingRaw()
public string getRingRaw()
{
return m_ringRaw;
}
public String getIconRes()
public string getIconRes()
{
return m_iconRes;
}
public String getSmallIcon()
public string getSmallIcon()
{
return m_smallIcon;
}

public Boolean isValid()
public bool isValid()
{
if (m_ring < 0 || m_ring > 1) return false;
if (m_vibrate < 0 || m_vibrate > 1) return false;
Expand Down
2 changes: 1 addition & 1 deletion SDK/TimeInterval.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public TimeInterval(int startHour, int startMin, int endHour, int endMin)
this.m_endMin = endMin;
}

public Boolean isValid()
public bool isValid()
{
if (this.m_startHour >= 0 && this.m_startHour <= 23 &&
this.m_startMin >= 0 && this.m_startMin <= 59 &&
Expand Down
Loading

0 comments on commit 6423d7c

Please sign in to comment.