PushNoticeToiOSRequest.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. using Aliyun.Acs.Core;
  20. using Aliyun.Acs.Core.Http;
  21. using Aliyun.Acs.Core.Transform;
  22. using Aliyun.Acs.Core.Utils;
  23. using Aliyun.Acs.Push.Transform;
  24. using Aliyun.Acs.Push.Transform.V20160801;
  25. using System.Collections.Generic;
  26. namespace Aliyun.Acs.Push.Model.V20160801
  27. {
  28. public class PushNoticeToiOSRequest : RpcAcsRequest<PushNoticeToiOSResponse>
  29. {
  30. public PushNoticeToiOSRequest()
  31. : base("Push", "2016-08-01", "PushNoticeToiOS")
  32. {
  33. }
  34. private long? appKey;
  35. private string target;
  36. private string targetValue;
  37. private string apnsEnv;
  38. private string title;
  39. private string body;
  40. private string extParameters;
  41. public long? AppKey
  42. {
  43. get
  44. {
  45. return appKey;
  46. }
  47. set
  48. {
  49. appKey = value;
  50. DictionaryUtil.Add(QueryParameters, "AppKey", value.ToString());
  51. }
  52. }
  53. public string Target
  54. {
  55. get
  56. {
  57. return target;
  58. }
  59. set
  60. {
  61. target = value;
  62. DictionaryUtil.Add(QueryParameters, "Target", value);
  63. }
  64. }
  65. public string TargetValue
  66. {
  67. get
  68. {
  69. return targetValue;
  70. }
  71. set
  72. {
  73. targetValue = value;
  74. DictionaryUtil.Add(QueryParameters, "TargetValue", value);
  75. }
  76. }
  77. public string ApnsEnv
  78. {
  79. get
  80. {
  81. return apnsEnv;
  82. }
  83. set
  84. {
  85. apnsEnv = value;
  86. DictionaryUtil.Add(QueryParameters, "ApnsEnv", value);
  87. }
  88. }
  89. public string Title
  90. {
  91. get
  92. {
  93. return title;
  94. }
  95. set
  96. {
  97. title = value;
  98. DictionaryUtil.Add(QueryParameters, "Title", value);
  99. }
  100. }
  101. public string Body
  102. {
  103. get
  104. {
  105. return body;
  106. }
  107. set
  108. {
  109. body = value;
  110. DictionaryUtil.Add(QueryParameters, "Body", value);
  111. }
  112. }
  113. public string ExtParameters
  114. {
  115. get
  116. {
  117. return extParameters;
  118. }
  119. set
  120. {
  121. extParameters = value;
  122. DictionaryUtil.Add(QueryParameters, "ExtParameters", value);
  123. }
  124. }
  125. public override PushNoticeToiOSResponse GetResponse(Core.Transform.UnmarshallerContext unmarshallerContext)
  126. {
  127. return PushNoticeToiOSResponseUnmarshaller.Unmarshall(unmarshallerContext);
  128. }
  129. }
  130. }