CancelPushRequest.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 CancelPushRequest : RpcAcsRequest<CancelPushResponse>
  29. {
  30. public CancelPushRequest()
  31. : base("Push", "2016-08-01", "CancelPush")
  32. {
  33. }
  34. private long? appKey;
  35. private string messageId;
  36. public long? AppKey
  37. {
  38. get
  39. {
  40. return appKey;
  41. }
  42. set
  43. {
  44. appKey = value;
  45. DictionaryUtil.Add(QueryParameters, "AppKey", value.ToString());
  46. }
  47. }
  48. public string MessageId
  49. {
  50. get
  51. {
  52. return messageId;
  53. }
  54. set
  55. {
  56. messageId = value;
  57. DictionaryUtil.Add(QueryParameters, "MessageId", value);
  58. }
  59. }
  60. public override CancelPushResponse GetResponse(Core.Transform.UnmarshallerContext unmarshallerContext)
  61. {
  62. return CancelPushResponseUnmarshaller.Unmarshall(unmarshallerContext);
  63. }
  64. }
  65. }