PushNoticeToAndroidRequest.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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 PushNoticeToAndroidRequest : RpcAcsRequest<PushNoticeToAndroidResponse>
  29. {
  30. public PushNoticeToAndroidRequest()
  31. : base("Push", "2016-08-01", "PushNoticeToAndroid")
  32. {
  33. }
  34. private long? appKey;
  35. private string target;
  36. private string targetValue;
  37. private string title;
  38. private string body;
  39. private string extParameters;
  40. public long? AppKey
  41. {
  42. get
  43. {
  44. return appKey;
  45. }
  46. set
  47. {
  48. appKey = value;
  49. DictionaryUtil.Add(QueryParameters, "AppKey", value.ToString());
  50. }
  51. }
  52. public string Target
  53. {
  54. get
  55. {
  56. return target;
  57. }
  58. set
  59. {
  60. target = value;
  61. DictionaryUtil.Add(QueryParameters, "Target", value);
  62. }
  63. }
  64. public string TargetValue
  65. {
  66. get
  67. {
  68. return targetValue;
  69. }
  70. set
  71. {
  72. targetValue = value;
  73. DictionaryUtil.Add(QueryParameters, "TargetValue", value);
  74. }
  75. }
  76. public string Title
  77. {
  78. get
  79. {
  80. return title;
  81. }
  82. set
  83. {
  84. title = value;
  85. DictionaryUtil.Add(QueryParameters, "Title", value);
  86. }
  87. }
  88. public string Body
  89. {
  90. get
  91. {
  92. return body;
  93. }
  94. set
  95. {
  96. body = value;
  97. DictionaryUtil.Add(QueryParameters, "Body", value);
  98. }
  99. }
  100. public string ExtParameters
  101. {
  102. get
  103. {
  104. return extParameters;
  105. }
  106. set
  107. {
  108. extParameters = value;
  109. DictionaryUtil.Add(QueryParameters, "ExtParameters", value);
  110. }
  111. }
  112. public override PushNoticeToAndroidResponse GetResponse(Core.Transform.UnmarshallerContext unmarshallerContext)
  113. {
  114. return PushNoticeToAndroidResponseUnmarshaller.Unmarshall(unmarshallerContext);
  115. }
  116. }
  117. }