2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / class / System.ServiceModel / System.ServiceModel.PeerResolvers / ServiceSettingsResponseInfo.cs
blob50be42bb89d2866c6a881ac06ec2b4077fe6e524
1 //
2 // ServiceSettingsResponseInfo.cs
3 //
4 // Author:
5 // Marcos Cobena (marcoscobena@gmail.com)
6 //
7 // Copyright 2007 Marcos Cobena (http://www.youcannoteatbits.org/)
8 //
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 {
19 get {
20 if (body == null)
21 body = new ServiceSettingsResponseInfoDC ();
22 return body;
25 ServiceSettingsResponseInfoDC body;
27 public ServiceSettingsResponseInfo ()
31 public ServiceSettingsResponseInfo (bool control)
33 Body.ControlMeshShape = control;
36 public bool ControlMeshShape {
37 get { return Body.ControlMeshShape; }
38 set { Body.ControlMeshShape = value; }
41 public bool HasBody ()
43 return true; // FIXME: I have no idea when it returns false
47 [DataContract (Name = "ServiceSettings", Namespace = "http://schemas.microsoft.com/net/2006/05/peer")]
48 internal class ServiceSettingsResponseInfoDC
50 bool control_mesh_shape;
52 public ServiceSettingsResponseInfoDC ()
56 [DataMember]
57 public bool ControlMeshShape {
58 get { return control_mesh_shape; }
59 set { control_mesh_shape = value; }