예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QueryOptionsRecord" /> class.
 /// </summary>
 /// <param name="Filter">Filter.</param>
 /// <param name="Pg">Pg.</param>
 /// <param name="Format">Format.</param>
 /// <param name="Sort">Sort.</param>
 /// <param name="Type">Type of ListOptions record..</param>
 public QueryOptionsRecord(QueryFilterRecord Filter = null, PaginationRecord Pg = null, FormatRecord Format = null, SortAttributeRecord Sort = null, string Type = null)
 {
     this.Filter = Filter;
     this.Pg     = Pg;
     this.Format = Format;
     this.Sort   = Sort;
     this.Type   = Type;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateEventInput" /> class.
 /// </summary>
 /// <param name="Task">Task (required).</param>
 /// <param name="Pg">Pg (required).</param>
 /// <param name="Options">Options (required).</param>
 /// <param name="CalendarEvent">CalendarEvent (required).</param>
 public UpdateEventInput(TaskRecord Task = null, PaginationRecord Pg = null, CalendarEventInstancesOptionsRecord Options = null, CalendarEventV2Record CalendarEvent = null)
 {
     // to ensure "Task" is required (not null)
     if (Task == null)
     {
         throw new InvalidDataException("Task is a required property for UpdateEventInput and cannot be null");
     }
     else
     {
         this.Task = Task;
     }
     // to ensure "Pg" is required (not null)
     if (Pg == null)
     {
         throw new InvalidDataException("Pg is a required property for UpdateEventInput and cannot be null");
     }
     else
     {
         this.Pg = Pg;
     }
     // to ensure "Options" is required (not null)
     if (Options == null)
     {
         throw new InvalidDataException("Options is a required property for UpdateEventInput and cannot be null");
     }
     else
     {
         this.Options = Options;
     }
     // to ensure "CalendarEvent" is required (not null)
     if (CalendarEvent == null)
     {
         throw new InvalidDataException("CalendarEvent is a required property for UpdateEventInput and cannot be null");
     }
     else
     {
         this.CalendarEvent = CalendarEvent;
     }
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ListPageRecord" /> class.
 /// </summary>
 /// <param name="Total">Total number of items in the list. Negative value means the total is not available..</param>
 /// <param name="CommentSizing">comment sizing option. This is used for comments sizing option..</param>
 /// <param name="SortAttr">sort attributes..</param>
 /// <param name="Pg">Pg.</param>
 /// <param name="DisplayStyle">display option..</param>
 /// <param name="Count">Number of items in the partial list. @deprecate The information is not important..</param>
 /// <param name="SortDir">sort direction..</param>
 public ListPageRecord(int?Total = null, string CommentSizing = null, List <string> SortAttr = null, PaginationRecord Pg = null, string DisplayStyle = null, int?Count = null, string SortDir = null)
 {
     this.Total         = Total;
     this.CommentSizing = CommentSizing;
     this.SortAttr      = SortAttr;
     this.Pg            = Pg;
     this.DisplayStyle  = DisplayStyle;
     this.Count         = Count;
     this.SortDir       = SortDir;
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpaceListOptionsRecord" /> class.
 /// </summary>
 /// <param name="FolderKey">Type of ListOptions record..</param>
 /// <param name="Format">Format.</param>
 /// <param name="Type">Type of ListOptions record..</param>
 /// <param name="SearchString">retrieve items by the string..</param>
 /// <param name="Pg">Pg.</param>
 public SpaceListOptionsRecord(string FolderKey = null, FormatRecord Format = null, string Type = null, string SearchString = null, PaginationRecord Pg = null)
 {
     this.FolderKey    = FolderKey;
     this.Format       = Format;
     this.Type         = Type;
     this.SearchString = SearchString;
     this.Pg           = Pg;
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FolderPagerRecord" /> class.
 /// </summary>
 /// <param name="Total">Total number of items in the list. Negative value means the total is not available..</param>
 /// <param name="CommentSizing">comment sizing option. This is used for comments sizing option..</param>
 /// <param name="SortAttr">sort attributes..</param>
 /// <param name="Pg">Pg.</param>
 /// <param name="DisplayStyle">display option..</param>
 /// <param name="Count">Number of items in the partial list. @deprecate The information is not important..</param>
 /// <param name="SortDir">sort direction..</param>
 /// <param name="Current">.</param>
 /// <param name="Limit">.</param>
 /// <param name="Totalitems">.</param>
 public FolderPagerRecord(int?Total = null, string CommentSizing = null, List <string> SortAttr = null, PaginationRecord Pg = null, string DisplayStyle = null, int?Count = null, string SortDir = null, string Current = null, string Limit = null, string Totalitems = null)
 {
     this.Total         = Total;
     this.CommentSizing = CommentSizing;
     this.SortAttr      = SortAttr;
     this.Pg            = Pg;
     this.DisplayStyle  = DisplayStyle;
     this.Count         = Count;
     this.SortDir       = SortDir;
     this.Current       = Current;
     this.Limit         = Limit;
     this.Totalitems    = Totalitems;
 }