Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

45 Zeilen
900 B

  1. using System;
  2. namespace CIG
  3. {
  4. public class NativeNotification
  5. {
  6. public NativeNotification(int seconds, string title, string description, bool sound, int badgeCount)
  7. {
  8. this.Seconds = seconds;
  9. this.Title = title;
  10. this.Description = description;
  11. this.Sound = sound;
  12. this.BadgeCount = badgeCount;
  13. }
  14. public override string ToString()
  15. {
  16. return string.Concat(new object[]
  17. {
  18. "[Sec: ",
  19. this.Seconds,
  20. "; Title: '",
  21. this.Title,
  22. "'; Desc:'",
  23. this.Description,
  24. "'; Sound: ",
  25. (!this.Sound) ? "No" : "Yes",
  26. "; BadgeCount: ",
  27. this.BadgeCount,
  28. "]"
  29. });
  30. }
  31. public string Title { get; private set; }
  32. public int BadgeCount { get; private set; }
  33. public int Seconds { get; private set; }
  34. public string Description { get; private set; }
  35. public bool Sound { get; private set; }
  36. }
  37. }