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.

60 lines
1.8 KiB

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