Exemplo n.º 1
0
 /// <summary>
 /// Delete an existing Address Fence in your account
 /// </summary>
 /// <param name="ToDelete">The Address Fence to delete</param>
 /// <param name="AsAccount">(Optional) If this parameter is included, the method will be run on behalf of the specified child Account.</param>
 /// <returns>True if the deletion succeeds, false otherwise</returns>
 /// <exception cref="RestException">A RestException containing the information returned by the server for an unsuccessful request</exception>
 public bool DeleteAddressFence(AddressFence ToDelete, Account AsAccount = null)
 {
     return(DeleteAddressFence(ToDelete.AddressFenceId, AsAccount));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new Address Fence for your account
 /// </summary>
 /// <param name="ToCreate">The Address Fence to create. AddressId must be set to an existing address, AlertId must be set to 0.</param>
 /// <param name="AsAccount">(Optional) If this parameter is included, the method will be run on behalf of the specified child Account.</param>
 /// <returns>The new Address Fence created in your account</returns>
 /// <exception cref="RestException">A RestException containing the information returned by the server for an unsuccessful request</exception>
 public AddressFence CreateAddressFence(AddressFence ToCreate, Account AsAccount = null)
 {
     return(RetrieveResponse <AddressFence>(uriPath_CreateAddressFence + AppendAccount(AsAccount), verb_Create, ToCreate));
 }