ServiceSettingsResponseInfo.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. public bool HasBody ()
  31. {
  32. return true; // FIXME: I have no idea when it returns false
  33. }
  34. }
  35. [DataContract (Name = "ServiceSettings", Namespace = "http://schemas.microsoft.com/net/2006/05/peer")]
  36. internal class ServiceSettingsResponseInfoDC
  37. {
  38. bool control_mesh_shape;
  39. public ServiceSettingsResponseInfoDC ()
  40. {
  41. }
  42. [DataMember]
  43. public bool ControlMeshShape {
  44. get { return control_mesh_shape; }
  45. set { control_mesh_shape = value; }
  46. }
  47. }
  48. }