ServiceSettingsResponseInfo.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------
  4. namespace System.ServiceModel.PeerResolvers
  5. {
  6. using System.ServiceModel.Channels;
  7. using System.ServiceModel;
  8. using System.Runtime.Serialization;
  9. [MessageContract(IsWrapped = false)]
  10. public class ServiceSettingsResponseInfo
  11. {
  12. [DataContract(Name = "ServiceSettingsResponseInfo", Namespace = PeerStrings.Namespace)]
  13. class ServiceSettingsResponseInfoDC
  14. {
  15. [DataMember(Name = "ControlMeshShape")]
  16. public bool ControlMeshShape;
  17. public ServiceSettingsResponseInfoDC(bool control)
  18. {
  19. ControlMeshShape = control;
  20. }
  21. }
  22. public ServiceSettingsResponseInfo() : this(false) { }
  23. public ServiceSettingsResponseInfo(bool control)
  24. {
  25. this.body = new ServiceSettingsResponseInfoDC(control);
  26. }
  27. [MessageBodyMember(Name = "ServiceSettings", Namespace = PeerStrings.Namespace)]
  28. ServiceSettingsResponseInfoDC body;
  29. public bool ControlMeshShape
  30. {
  31. get { return body.ControlMeshShape; }
  32. set { body.ControlMeshShape = value; }
  33. }
  34. public bool HasBody()
  35. {
  36. return body != null;
  37. }
  38. }
  39. }