ServiceSettingsResponseInfo.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // ServiceSettingsResponseInfo.cs
  3. //
  4. // Author:
  5. // Marcos Cobena ([email protected])
  6. //
  7. // Copyright 2007 Marcos Cobena (http://www.youcannoteatbits.org/)
  8. //
  9. using System.Runtime.Serialization;
  10. namespace System.ServiceModel.PeerResolvers
  11. {
  12. [MessageContract (IsWrapped = false)]
  13. public class ServiceSettingsResponseInfo
  14. {
  15. [MessageBodyMember (Name = "ServiceSettings", Namespace = "http://schemas.microsoft.com/net/2006/05/peer")]
  16. ServiceSettingsResponseInfoDC body;
  17. public ServiceSettingsResponseInfo ()
  18. {
  19. body = new ServiceSettingsResponseInfoDC ();
  20. }
  21. public ServiceSettingsResponseInfo (bool control)
  22. : this ()
  23. {
  24. body.ControlMeshShape = control;
  25. }
  26. public bool ControlMeshShape {
  27. get { return body.ControlMeshShape; }
  28. set { body.ControlMeshShape = value; }
  29. }
  30. [MonoTODO]
  31. public bool HasBody ()
  32. {
  33. throw new NotImplementedException ();
  34. }
  35. }
  36. [DataContract]
  37. internal class ServiceSettingsResponseInfoDC
  38. {
  39. bool control_mesh_shape;
  40. public ServiceSettingsResponseInfoDC ()
  41. {
  42. }
  43. [DataMember]
  44. public bool ControlMeshShape {
  45. get { return control_mesh_shape; }
  46. set { control_mesh_shape = value; }
  47. }
  48. }
  49. }