/// <summary>
 /// Action: Exchange
 /// </summary>
 /// <param name="HostID">Associated State Variable: A_ARG_TYPE_EndpointID</param>
 /// <param name="HostCertificate">Associated State Variable: A_ARG_TYPE_Certificate</param>
 /// <param name="IterationsRequired">Associated State Variable: A_ARG_TYPE_Rounds</param>
 /// <param name="HostConfirmAuthenticator">Associated State Variable: A_ARG_TYPE_Authenticator</param>
 /// <param name="DeviceID">Associated State Variable: A_ARG_TYPE_EndpointID</param>
 /// <param name="DeviceCertificate">Associated State Variable: A_ARG_TYPE_Certificate</param>
 /// <param name="DeviceConfirmAuthenticator">Associated State Variable: A_ARG_TYPE_Authenticator</param>
 public void Exchange(System.String HostID, System.String HostCertificate, System.Byte IterationsRequired, System.String HostConfirmAuthenticator, out System.String DeviceID, out System.String DeviceCertificate, out System.String DeviceConfirmAuthenticator)
 {
     m_logger.LogInfo("TrustAgreementService_Exchange(\"" + HostID.ToString() + "\",\"" + HostCertificate.ToString() + "\"," + IterationsRequired.ToString() + ",\"" + HostConfirmAuthenticator.ToString() + "\")");
     //ToDo: Add Your implementation here, and remove exception
     //throw (new UPnPCustomException(800, "This method has not been completely implemented..."));
     DeviceID                   = "";
     DeviceCertificate          = "";
     DeviceConfirmAuthenticator = "";
 }
 /// <summary>
 /// Action: Validate
 /// </summary>
 /// <param name="HostID">Associated State Variable: A_ARG_TYPE_EndpointID</param>
 /// <param name="Iteration">Associated State Variable: A_ARG_TYPE_Iteration</param>
 /// <param name="HostValidateNonce">Associated State Variable: A_ARG_TYPE_Nonce</param>
 /// <param name="DeviceValidateNonce">Associated State Variable: A_ARG_TYPE_Nonce</param>
 public void Validate(System.String HostID, System.Byte Iteration, System.String HostValidateNonce, out System.String DeviceValidateNonce)
 {
     m_logger.LogInfo("TrustAgreementService_Validate(" + HostID.ToString() + Iteration.ToString() + HostValidateNonce.ToString() + ")");
     //ToDo: Add Your implementation here, and remove exception
     throw (new UPnPCustomException(800, "This method has not been completely implemented..."));
 }
Exemple #3
0
 public System.String ToJSON()
 {
     return("{ \"data\": " + data.ToString() + "}");
 }
Exemple #4
0
 /// <summary>
 /// Deletes a existing resource.
 /// </summary>
 /// <param name="ID">The ID of the resource to be deleted.</param>
 public void Delete(System.Byte ID) => this.Delete(ID.ToString());
Exemple #5
0
 /// <summary>
 /// Deletes a existing resource.
 /// </summary>
 /// <param name="ID">The ID of the resource to be deleted.</param>
 public async System.Threading.Tasks.Task DeleteAsync(System.Byte ID) => await this.DeleteAsync(ID.ToString());
Exemple #6
0
 /// <summary>
 /// Gets a single resource by ID.
 /// </summary>
 /// <param name="ID">The ID of the resource to show.</param>
 /// <returns>A resource represented by ID.</returns>
 public T Show(System.Byte ID) => this.Show(ID.ToString());
Exemple #7
0
 /// <summary>
 /// Updates a resource partially.
 /// </summary>
 /// <param name="ID">The ID of the resource to be modified.</param>
 /// <param name="Model">The object that contains the fields and values ​​to be modified.</param>
 /// <returns>The modified resource.</returns>
 public T Modify(System.Byte ID, System.Object Model) => this.Modify(ID.ToString(), Model);