2 // ServiceSettingsResponseInfo.cs
5 // Marcos Cobena (marcoscobena@gmail.com)
7 // Copyright 2007 Marcos Cobena (http://www.youcannoteatbits.org/)
10 using System.Runtime.Serialization;
12 namespace System.ServiceModel.PeerResolvers
14 [MessageContract (IsWrapped = false)]
15 public class ServiceSettingsResponseInfo
17 [MessageBodyMember (Name = "ServiceSettings", Namespace = "http://schemas.microsoft.com/net/2006/05/peer")]
18 ServiceSettingsResponseInfoDC Body {
21 body = new ServiceSettingsResponseInfoDC ();
26 ServiceSettingsResponseInfoDC body;
28 public ServiceSettingsResponseInfo ()
32 public ServiceSettingsResponseInfo (bool control)
34 Body.ControlMeshShape = control;
37 public bool ControlMeshShape {
38 get { return Body.ControlMeshShape; }
39 set { Body.ControlMeshShape = value; }
42 public bool HasBody ()
44 return true; // FIXME: I have no idea when it returns false
48 [DataContract (Name = "ServiceSettings", Namespace = "http://schemas.microsoft.com/net/2006/05/peer")]
49 internal class ServiceSettingsResponseInfoDC
51 bool control_mesh_shape;
53 public ServiceSettingsResponseInfoDC ()
58 public bool ControlMeshShape {
59 get { return control_mesh_shape; }
60 set { control_mesh_shape = value; }