-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7de54c9
commit 6efdd2c
Showing
13 changed files
with
440 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Plivo.Resource.VerifyCallerId | ||
{ | ||
public class AsyncResponse : BaseResponse | ||
{ | ||
|
||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
src/Plivo/Resource/VerifyCallerId/GetVerifiedCallerIdResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Plivo.Resource.VerifyCallerId | ||
{ | ||
[JsonObject(MemberSerialization.OptIn)] | ||
public class GetVerifiedCallerIdResponse : Resource | ||
{ | ||
[JsonProperty("api_id")] | ||
public string ApiID { get; set; } | ||
|
||
[JsonProperty("alias")] | ||
public string Alias { get; set; } | ||
|
||
[JsonProperty("country")] | ||
public string Country { get; set; } | ||
|
||
[JsonProperty("created_at")] | ||
public string CreatedAt { get; set; } | ||
|
||
[JsonProperty("modified_at")] | ||
public string ModifiedAt { get; set; } | ||
|
||
[JsonProperty("phone_number")] | ||
public string PhoneNumber { get; set; } | ||
|
||
[JsonProperty("subaccount")] | ||
public string Subaccount { get; set; } | ||
|
||
[JsonProperty("verification_uuid")] | ||
public string VerificationUuid { get; set; } | ||
|
||
public override string ToString() | ||
{ | ||
return JsonConvert.SerializeObject(this, Formatting.Indented); | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/Plivo/Resource/VerifyCallerId/InitiateVerifyResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Plivo.Resource.VerifyCallerId | ||
{ | ||
[JsonObject(MemberSerialization.OptIn)] | ||
public class InitiateVerifyResponse : Resource | ||
{ | ||
[JsonProperty("api_id")] | ||
public new string ApiId { get; set; } | ||
|
||
[JsonProperty("verification_uuid")] | ||
public new string VerificationUuid { get; set; } | ||
|
||
[JsonProperty("message")] | ||
public new string Message { get; set; } | ||
|
||
[JsonProperty("error", NullValueHandling = NullValueHandling.Ignore)] // Ignore null values for "error" | ||
public string Error { get; set; } | ||
|
||
public override string ToString() | ||
{ | ||
var settings = new JsonSerializerSettings | ||
{ | ||
Formatting = Formatting.Indented, | ||
NullValueHandling = NullValueHandling.Ignore // Ignore null values globally | ||
}; | ||
|
||
return JsonConvert.SerializeObject(this, settings); | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
src/Plivo/Resource/VerifyCallerId/ListVerifiedCallerIdResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Plivo.Resource.VerifyCallerId | ||
{ | ||
[JsonObject(MemberSerialization.OptIn)] | ||
public class ListVerifiedCallerIdResponse : Resource | ||
{ | ||
[JsonProperty("alias")] | ||
public string Alias { get; set; } | ||
|
||
[JsonProperty("country")] | ||
public string Country { get; set; } | ||
|
||
[JsonProperty("created_at")] | ||
public string CreatedAt { get; set; } | ||
|
||
[JsonProperty("modified_at")] | ||
public string ModifiedAt { get; set; } | ||
|
||
[JsonProperty("phone_number")] | ||
public string PhoneNumber { get; set; } | ||
|
||
[JsonProperty("resource_uri")] | ||
public string ResourceUri { get; set; } | ||
|
||
[JsonProperty("subaccount")] | ||
public string Subaccount { get; set; } | ||
|
||
[JsonProperty("verification_uuid")] | ||
public string VerificationUuid { get; set; } | ||
|
||
public override string ToString() | ||
{ | ||
return JsonConvert.SerializeObject(this, Formatting.Indented); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Plivo.Resource.VerifyCallerId | ||
{ | ||
|
||
[JsonObject(MemberSerialization.OptIn)] | ||
public class VerifyCallerId : Resource | ||
{ | ||
[JsonProperty("api_id")] | ||
public string ApiID { get; set; } | ||
|
||
[JsonProperty("alias")] | ||
public string Alias { get; set; } | ||
|
||
[JsonProperty("channel")] | ||
public string Channel { get; set; } | ||
|
||
[JsonProperty("country")] | ||
public string Country { get; set; } | ||
|
||
[JsonProperty("created_at")] | ||
public string CreatedAt { get; set; } | ||
|
||
[JsonProperty("phone_number")] | ||
public string PhoneNumber { get; set; } | ||
|
||
[JsonProperty("subaccount")] | ||
public string Subaccount { get; set; } | ||
|
||
[JsonProperty("verification_uuid")] | ||
public string VerificationUuid { get; set; } | ||
|
||
public override string ToString() | ||
{ | ||
return JsonConvert.SerializeObject(this, Formatting.Indented); | ||
} | ||
} | ||
} |
Oops, something went wrong.