/// <summary>
 /// Initializes a new instance of the <see cref="PublishCardRequest" /> class.
 /// </summary>
 /// <param name="identity">The identity.</param>
 /// <param name="identityType">Type of the identity.</param>
 /// <param name="publicKeyData">The public key data.</param>
 /// <param name="info">The information.</param>
 /// <param name="customFields">The custom fields.</param>
 public PublishCardRequest(
     string identity,
     string identityType,
     byte[] publicKeyData,
     CardInfoModel info = null,
     Dictionary <string, string> customFields = null)
     : base(new PublishCardSnapshotModel
 {
     Identity      = identity,
     IdentityType  = identityType,
     PublicKeyData = publicKeyData,
     Data          = customFields,
     Info          = info,
     Scope         = CardScope.Application
 })
 {
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PublishGlobalCardRequest" /> class.
 /// </summary>
 /// <param name="identity">The identity.</param>
 /// <param name="identityType">Type of the identity.</param>
 /// <param name="publicKeyData">The public key data.</param>
 /// <param name="validationToken">The identity validation token.</param>
 /// <param name="info">The information.</param>
 /// <param name="customFields">The custom fields.</param>
 public PublishGlobalCardRequest(
     string identity,
     string identityType,
     byte[] publicKeyData,
     string validationToken,
     CardInfoModel info = null,
     Dictionary <string, string> customFields = null)
     : base(new PublishCardSnapshotModel
 {
     Identity      = identity,
     IdentityType  = identityType,
     PublicKeyData = publicKeyData,
     Data          = customFields,
     Info          = info,
     Scope         = CardScope.Global
 })
 {
     this.validationToken = validationToken;
 }