1 // 2 // ServiceSettingsResponseInfo.cs 3 // 4 // Author: 5 // Marcos Cobena (marcoscobena@gmail.com) 6 // 7 // Copyright 2007 Marcos Cobena (http://www.youcannoteatbits.org/) 8 // 9 10 using System.Runtime.Serialization; 11 12 namespace System.ServiceModel.PeerResolvers 13 { 14 [MessageContract (IsWrapped = false)] 15 public class ServiceSettingsResponseInfo 16 { 17 [MessageBodyMember (Name = "ServiceSettings", Namespace = "http://schemas.microsoft.com/net/2006/05/peer")] 18 ServiceSettingsResponseInfoDC Body { 19 get { 20 if (body == null) 21 body = new ServiceSettingsResponseInfoDC (); 22 return body; 23 } 24 set { body = value; } 25 } 26 ServiceSettingsResponseInfoDC body; 27 ServiceSettingsResponseInfo()28 public ServiceSettingsResponseInfo () 29 { 30 } 31 ServiceSettingsResponseInfo(bool control)32 public ServiceSettingsResponseInfo (bool control) 33 { 34 Body.ControlMeshShape = control; 35 } 36 37 public bool ControlMeshShape { 38 get { return Body.ControlMeshShape; } 39 set { Body.ControlMeshShape = value; } 40 } 41 HasBody()42 public bool HasBody () 43 { 44 return true; // FIXME: I have no idea when it returns false 45 } 46 } 47 48 [DataContract (Name = "ServiceSettings", Namespace = "http://schemas.microsoft.com/net/2006/05/peer")] 49 internal class ServiceSettingsResponseInfoDC 50 { 51 bool control_mesh_shape; 52 ServiceSettingsResponseInfoDC()53 public ServiceSettingsResponseInfoDC () 54 { 55 } 56 57 [DataMember] 58 public bool ControlMeshShape { 59 get { return control_mesh_shape; } 60 set { control_mesh_shape = value; } 61 } 62 } 63 } 64