|
- using System;
-
- namespace CIG
- {
- public class NativeNotification
- {
- public NativeNotification(int seconds, string title, string description, bool sound, int badgeCount)
- {
- this.Seconds = seconds;
- this.Title = title;
- this.Description = description;
- this.Sound = sound;
- this.BadgeCount = badgeCount;
- }
-
- public override string ToString()
- {
- return string.Concat(new object[]
- {
- "[Sec: ",
- this.Seconds,
- "; Title: '",
- this.Title,
- "'; Desc:'",
- this.Description,
- "'; Sound: ",
- (!this.Sound) ? "No" : "Yes",
- "; BadgeCount: ",
- this.BadgeCount,
- "]"
- });
- }
-
- public string Title { get; private set; }
-
- public int BadgeCount { get; private set; }
-
- public int Seconds { get; private set; }
-
- public string Description { get; private set; }
-
- public bool Sound { get; private set; }
- }
- }
|