mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
73 lines
1.5 KiB
C#
73 lines
1.5 KiB
C#
//
|
|
// RefreshResponseInfo.cs
|
|
//
|
|
// Author:
|
|
// Marcos Cobena ([email protected])
|
|
//
|
|
// Copyright 2007 Marcos Cobena (http://www.youcannoteatbits.org/)
|
|
//
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System.ServiceModel.PeerResolvers
|
|
{
|
|
[MessageContract (IsWrapped = false)]
|
|
public class RefreshResponseInfo
|
|
{
|
|
// FIXME: I'm not 100% sure its Name is "Update", I need to take some more long period traces.
|
|
[MessageBodyMember (Name = "Update", Namespace = "http://schemas.microsoft.com/net/2006/05/peer")]
|
|
RefreshResponseInfoDC body;
|
|
|
|
public RefreshResponseInfo ()
|
|
{
|
|
body = new RefreshResponseInfoDC ();
|
|
}
|
|
|
|
public RefreshResponseInfo (TimeSpan registrationLifetime, RefreshResult result)
|
|
: this ()
|
|
{
|
|
body.RegistrationLifetime = registrationLifetime;
|
|
body.Result = result;
|
|
}
|
|
|
|
public TimeSpan RegistrationLifetime {
|
|
get { return body.RegistrationLifetime; }
|
|
set { body.RegistrationLifetime = value; }
|
|
}
|
|
|
|
public RefreshResult Result {
|
|
get { return body.Result; }
|
|
set { body.Result = value; }
|
|
}
|
|
|
|
[MonoTODO]
|
|
public bool HasBody ()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
}
|
|
|
|
[DataContract]
|
|
internal class RefreshResponseInfoDC
|
|
{
|
|
TimeSpan registration_lifetime;
|
|
RefreshResult result;
|
|
|
|
public RefreshResponseInfoDC ()
|
|
{
|
|
}
|
|
|
|
[DataMember]
|
|
public TimeSpan RegistrationLifetime {
|
|
get { return registration_lifetime; }
|
|
set { registration_lifetime = value; }
|
|
}
|
|
|
|
[DataMember]
|
|
public RefreshResult Result {
|
|
get { return result; }
|
|
set { result = value; }
|
|
}
|
|
}
|
|
}
|