You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.8 KiB

1 year ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace CircleViewer
  8. {
  9. public class Constants
  10. {
  11. public static string CircleFolder
  12. {
  13. get
  14. {
  15. var folder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Circle");
  16. if (!Directory.Exists(folder))
  17. Directory.CreateDirectory(folder);
  18. return folder;
  19. }
  20. }
  21. public static List<string> SupportedFiles
  22. {
  23. get
  24. {
  25. return new List<string>
  26. {
  27. ".gif",
  28. ".jpeg",
  29. ".jpg",
  30. ".png",
  31. ".pdf"
  32. };
  33. }
  34. }
  35. public const string CustomerCode = "CIRCLE";
  36. public const string AuthCode = "ORAMA";
  37. public const string AppKey = "Dashboard";
  38. public const string EndUserId = "userman";
  39. public const string Secret = "2FDA4588-774B-4FA6-8B3D-6F08F5FA6E90";
  40. public const string CircleViewEventUrl = "https://circlecloudfuncstaging.azurewebsites.net/api/CircleViewEvent";
  41. }
  42. // CircleView Messages
  43. // for circle service to persist these messages, they have to be between 100000 and 1000000
  44. public enum CircleViewMessages
  45. {
  46. FileViewed = 10001,
  47. FileEncrypted = 10002,
  48. InviteGenerated = 10003,
  49. VerificationRequested = 10004,
  50. // CircleCreated = 10005, // can't have this one since this is above the circle
  51. MemberRevoked = 10006,
  52. DeviceRevoked = 10007,
  53. BlockedViewAttempt = 10008,
  54. Unknown = 10009,
  55. LastMessage = 10010 // don't use this one except for looping.
  56. }
  57. }