using System; using System.ServiceModel; using System.Xml.Serialization; namespace Asb.Base.V2; [MessageContract(WrapperName = "RenewResponse", WrapperNamespace = "urn:msg.asb.se:2", IsWrapped = true)] [XmlRoot(Namespace = "urn:msg.asb.se:2")] public class RenewResponse : ConnectedResponse { [MessageBodyMember(Namespace = "urn:msg.asb.se:2", Order = 2)] [XmlElement(ElementName = "NewConnectionId")] public Guid NewConnectionId { get; set; } [MessageBodyMember(Namespace = "urn:msg.asb.se:2", Order = 3)] [XmlElement(ElementName = "NewConnectionLifetime", DataType = "duration")] public string NewConnectionLifetime { get; set; } [MessageBodyMember(Namespace = "urn:msg.asb.se:2", Order = 4)] [XmlElement(ElementName = "NewServicePublicKey")] public PublicKey NewServicePublicKey { get; set; } [MessageBodyMember(Namespace = "urn:msg.asb.se:2", Order = 5)] [XmlElement(ElementName = "NewServiceAuthenticationData")] public AuthenticationData NewServiceAuthenticationData { get; set; } public RenewResponse() { } public RenewResponse(ArchestrAResult result, Guid newConnectionId, string newConnectionLifetime, PublicKey newServicePublicKey, AuthenticationData newServiceAuthenticationData) : base(result) { NewConnectionId = newConnectionId; NewConnectionLifetime = newConnectionLifetime; NewServicePublicKey = newServicePublicKey; NewServiceAuthenticationData = newServiceAuthenticationData; } }