Skip to content

Commit

Permalink
New spec, new code
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Nov 4, 2021
1 parent 32bcd6f commit cac827e
Show file tree
Hide file tree
Showing 199 changed files with 5,627 additions and 3,586 deletions.
14 changes: 14 additions & 0 deletions RingCentral.Net/Definitions/ActionAdaptiveCardInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace RingCentral
{
public class ActionAdaptiveCardInfo
{
/// <summary>
/// Enum: AdaptiveCard
/// </summary>
public string type { get; set; }

/// <summary>
/// </summary>
public ActionCardBody[] body { get; set; }
}
}
24 changes: 24 additions & 0 deletions RingCentral.Net/Definitions/ActionCardBody.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
namespace RingCentral
{
public class ActionCardBody
{
/// <summary>
/// Enum: Input.Text
/// </summary>
public string type { get; set; }

/// <summary>
/// </summary>
public string id { get; set; }

/// <summary>
/// If set to `true`, allows multiple lines of input
/// </summary>
public bool? isMultiline { get; set; }

/// <summary>
/// Description of the input desired. Displayed when no text has been input
/// </summary>
public string placeholder { get; set; }
}
}
22 changes: 22 additions & 0 deletions RingCentral.Net/Definitions/AdaptiveCardAction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
namespace RingCentral
{
public class AdaptiveCardAction
{
/// <summary>
/// Enum: Action.ShowCard, Action.Submit, Action.OpenUrl, Action.ToggleVisibility
/// </summary>
public string type { get; set; }

/// <summary>
/// </summary>
public string title { get; set; }

/// <summary>
/// </summary>
public ActionAdaptiveCardInfo card { get; set; }

/// <summary>
/// </summary>
public string url { get; set; }
}
}
17 changes: 17 additions & 0 deletions RingCentral.Net/Definitions/AdaptiveCardColumnInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace RingCentral
{
public class AdaptiveCardColumnInfo
{
/// <summary>
/// </summary>
public string type { get; set; }

/// <summary>
/// </summary>
public string width { get; set; }

/// <summary>
/// </summary>
public AdaptiveCardColumnItemInfo[] items { get; set; }
}
}
37 changes: 37 additions & 0 deletions RingCentral.Net/Definitions/AdaptiveCardColumnItemInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
namespace RingCentral
{
public class AdaptiveCardColumnItemInfo
{
/// <summary>
/// </summary>
public string type { get; set; }

/// <summary>
/// </summary>
public string url { get; set; }

/// <summary>
/// </summary>
public string size { get; set; }

/// <summary>
/// </summary>
public string style { get; set; }

/// <summary>
/// </summary>
public bool? wrap { get; set; }

/// <summary>
/// </summary>
public string spacing { get; set; }

/// <summary>
/// </summary>
public string text { get; set; }

/// <summary>
/// </summary>
public bool? isSubtle { get; set; }
}
}
10 changes: 10 additions & 0 deletions RingCentral.Net/Definitions/AdaptiveCardCreator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace RingCentral
{
public class AdaptiveCardCreator
{
/// <summary>
/// Internal identifier of a creator
/// </summary>
public string id { get; set; }
}
}
14 changes: 14 additions & 0 deletions RingCentral.Net/Definitions/AdaptiveCardInfoRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace RingCentral
{
public class AdaptiveCardInfoRequest
{
/// <summary>
/// Enum: Container
/// </summary>
public string type { get; set; }

/// <summary>
/// </summary>
public AdaptiveCardInfoRequestItem[] items { get; set; }
}
}
26 changes: 26 additions & 0 deletions RingCentral.Net/Definitions/AdaptiveCardInfoRequestItem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
namespace RingCentral
{
public class AdaptiveCardInfoRequestItem
{
/// <summary>
/// Enum: TextBlock, ColumnSet, Column, FactSet
/// </summary>
public string type { get; set; }

/// <summary>
/// </summary>
public string text { get; set; }

/// <summary>
/// </summary>
public string weight { get; set; }

/// <summary>
/// </summary>
public string size { get; set; }

/// <summary>
/// </summary>
public AdaptiveCardColumnInfo[] columns { get; set; }
}
}
11 changes: 11 additions & 0 deletions RingCentral.Net/Definitions/AdaptiveCardSelectAction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace RingCentral
{
public class AdaptiveCardSelectAction
{
/// <summary>
/// Required
/// Enum: Action.Submit, Action.OpenUrl, Action.ToggleVisibility
/// </summary>
public string type { get; set; }
}
}
37 changes: 37 additions & 0 deletions RingCentral.Net/Definitions/BackgroundImage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
namespace RingCentral
{
// Specifies a background image oa a card. Acceptable formats are PNG, JPEG, and GIF
public class BackgroundImage
{
/// <summary>
/// Must be `BackgroundImage`
/// Enum: BackgroundImage
/// </summary>
public string type { get; set; }

/// <summary>
/// The URL/data URL of an image to be used as a background of a card. Acceptable formats are PNG, JPEG, and GIF
/// Required
/// Format: uri-reference
/// </summary>
public string url { get; set; }

/// <summary>
/// Describes how the image should fill the area
/// Enum: cover, repeatHorizontally, repeatVertically, repeat
/// </summary>
public string fillMode { get; set; }

/// <summary>
/// Describes how the image should be aligned if it must be cropped or if using repeat fill mode
/// Enum: left, center, right
/// </summary>
public string horizontalAlignment { get; set; }

/// <summary>
/// Describes how the image should be aligned if it must be cropped or if using repeat fill mode
/// Enum: top, center, bottom
/// </summary>
public string verticalAlignment { get; set; }
}
}
17 changes: 17 additions & 0 deletions RingCentral.Net/Definitions/CallDurationByCompanyHours.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace RingCentral
{
public class CallDurationByCompanyHours
{
/// <summary>
/// Required
/// Format: int64
/// </summary>
public long? businessHoursSeconds { get; set; }

/// <summary>
/// Required
/// Format: int64
/// </summary>
public long? afterHoursSeconds { get; set; }
}
}
17 changes: 17 additions & 0 deletions RingCentral.Net/Definitions/CallDurationByResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace RingCentral
{
public class CallDurationByResponse
{
/// <summary>
/// Required
/// Format: int64
/// </summary>
public long? answeredCallsSeconds { get; set; }

/// <summary>
/// Required
/// Format: int64
/// </summary>
public long? notAnsweredCallsSeconds { get; set; }
}
}
41 changes: 41 additions & 0 deletions RingCentral.Net/Definitions/CallDurationByResponseType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
namespace RingCentral
{
public class CallDurationByResponseType
{
/// <summary>
/// Required
/// Format: int64
/// </summary>
public long? inboundDirectSeconds { get; set; }

/// <summary>
/// Required
/// Format: int64
/// </summary>
public long? parkRetrievalsSeconds { get; set; }

/// <summary>
/// Required
/// Format: int64
/// </summary>
public long? queueCallsSeconds { get; set; }

/// <summary>
/// Required
/// Format: int64
/// </summary>
public long? transferredCallsSeconds { get; set; }

/// <summary>
/// Required
/// Format: int64
/// </summary>
public long? missedCallsSeconds { get; set; }

/// <summary>
/// Required
/// Format: int64
/// </summary>
public long? acceptedCallsSeconds { get; set; }
}
}
29 changes: 29 additions & 0 deletions RingCentral.Net/Definitions/CallDurationByResult.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
namespace RingCentral
{
public class CallDurationByResult
{
/// <summary>
/// Required
/// Format: int64
/// </summary>
public long? completedCallsSeconds { get; set; }

/// <summary>
/// Required
/// Format: int64
/// </summary>
public long? abandonedCallsSeconds { get; set; }

/// <summary>
/// Required
/// Format: int64
/// </summary>
public long? voiceMailCallsSeconds { get; set; }

/// <summary>
/// Required
/// Format: int64
/// </summary>
public long? connectedCallsSeconds { get; set; }
}
}
12 changes: 12 additions & 0 deletions RingCentral.Net/Definitions/CallSegmentFilter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace RingCentral
{
// Filtering calls by segment
public class CallSegmentFilter
{
/// <summary>
/// Required
/// Enum: Ringing, LiveTalk, Hold, Park, Transfer, IvrPrompt, VoiceMailing, VmGreeting
/// </summary>
public string callSegment { get; set; }
}
}
Loading

0 comments on commit cac827e

Please sign in to comment.