Beispiel #1
0
        /// <summary>
        /// Builds a GetRemoteLoginSettingsResponse object
        /// </summary>
        public static AzureOperationResponse <ProxyModels.ComputeNodeGetRemoteLoginSettingsResult, ProxyModels.ComputeNodeGetRemoteLoginSettingsHeaders> CreateRemoteLoginSettingsGetResponse(string ipAddress)
        {
            var settings = new ProxyModels.ComputeNodeGetRemoteLoginSettingsResult();

            settings.RemoteLoginIPAddress = ipAddress;

            var response = new AzureOperationResponse <ProxyModels.ComputeNodeGetRemoteLoginSettingsResult, ProxyModels.ComputeNodeGetRemoteLoginSettingsHeaders>()
            {
                Response = new HttpResponseMessage(HttpStatusCode.OK),
                Body     = settings
            };

            return(response);
        }
Beispiel #2
0
 internal RemoteLoginSettings(Models.ComputeNodeGetRemoteLoginSettingsResult protocolObject)
 {
     this.IPAddress = protocolObject.RemoteLoginIPAddress;
     this.Port      = protocolObject.RemoteLoginPort;
 }