Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
slorello89 committed Oct 7, 2019
1 parent 31e712e commit 423067c
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions Nexmo.Api/ApplicationV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,18 @@ public class Capabilities

public class VoiceWebhook
{
[JsonProperty("webhooks")]
public webhooks Hooks { get; private set; }

public VoiceWebhook(Webhook answerUrl, Webhook eventUrl)
{
hooks = new webhooks()
Hooks = new webhooks()
{
AnswerUrl = answerUrl,
EventUrl = eventUrl
};
}

[JsonProperty("webhooks")]
public webhooks hooks { get; private set; }

public class webhooks
{
[JsonProperty("answer_url")]
Expand All @@ -87,32 +87,31 @@ public class webhooks

public class RtcWebhook
{
[JsonProperty("webhooks")]
public webhooks Hooks { get; private set; }

public RtcWebhook(Webhook eventUrl)
{
hooks = new webhooks() { EventUrl = eventUrl };
Hooks = new webhooks() { EventUrl = eventUrl };
}

[JsonProperty("webhooks")]
public webhooks hooks { get; private set; }

public class webhooks
{
[JsonProperty("event_url")]
public Webhook EventUrl { get; set; }
}
}

[JsonObject("webhooks")]
public class MessagesWebhook
{
[JsonProperty("webhooks")]
public webhooks Hooks { get; private set; }

public MessagesWebhook(Webhook inboundUrl, Webhook statusUrl)
{
hooks = new webhooks() { InboundUrl = inboundUrl, StatusUrl = statusUrl };
Hooks = new webhooks() { InboundUrl = inboundUrl, StatusUrl = statusUrl };
}

[JsonProperty("webhooks")]
public webhooks hooks { get; private set; }

public class webhooks
{
[JsonProperty("inbound_url")]
Expand Down

0 comments on commit 423067c

Please sign in to comment.