Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetAssignmentReadStateResult" /> class.
 /// </summary>
 /// <param name="Action">Action (required).</param>
 /// <param name="Hdr">Hdr (required).</param>
 public GetAssignmentReadStateResult(SparcActionRecord Action = null, ResponseHeaderRecord Hdr = null)
 {
     // to ensure "Action" is required (not null)
     if (Action == null)
     {
         throw new InvalidDataException("Action is a required property for GetAssignmentReadStateResult and cannot be null");
     }
     else
     {
         this.Action = Action;
     }
     // to ensure "Hdr" is required (not null)
     if (Hdr == null)
     {
         throw new InvalidDataException("Hdr is a required property for GetAssignmentReadStateResult and cannot be null");
     }
     else
     {
         this.Hdr = Hdr;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetLatestActionResult" /> class.
 /// </summary>
 /// <param name="LastAction">LastAction (required).</param>
 /// <param name="Hdr">Hdr (required).</param>
 public GetLatestActionResult(SparcActionRecord LastAction = null, ResponseHeaderRecord Hdr = null)
 {
     // to ensure "LastAction" is required (not null)
     if (LastAction == null)
     {
         throw new InvalidDataException("LastAction is a required property for GetLatestActionResult and cannot be null");
     }
     else
     {
         this.LastAction = LastAction;
     }
     // to ensure "Hdr" is required (not null)
     if (Hdr == null)
     {
         throw new InvalidDataException("Hdr is a required property for GetLatestActionResult and cannot be null");
     }
     else
     {
         this.Hdr = Hdr;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetLastActionsNoACLResult" /> class.
 /// </summary>
 /// <param name="Hdr">Hdr (required).</param>
 /// <param name="Actions">Actions (required).</param>
 public GetLastActionsNoACLResult(ResponseHeaderRecord Hdr = null, SparcActionRecord Actions = null)
 {
     // to ensure "Hdr" is required (not null)
     if (Hdr == null)
     {
         throw new InvalidDataException("Hdr is a required property for GetLastActionsNoACLResult and cannot be null");
     }
     else
     {
         this.Hdr = Hdr;
     }
     // to ensure "Actions" is required (not null)
     if (Actions == null)
     {
         throw new InvalidDataException("Actions is a required property for GetLastActionsNoACLResult and cannot be null");
     }
     else
     {
         this.Actions = Actions;
     }
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StreamRecordWrapper" /> class.
 /// </summary>
 /// <param name="TotalCounts">TotalCounts.</param>
 /// <param name="ActivityTime">.</param>
 /// <param name="HighlightMatch">highlighted text.</param>
 /// <param name="Ratings">Ratings.</param>
 /// <param name="Record">.</param>
 /// <param name="Recordtype">.</param>
 /// <param name="IsNewTile">.</param>
 /// <param name="BadgeCounts">BadgeCounts.</param>
 /// <param name="LastAction">LastAction.</param>
 /// <param name="IsLocal">Whether this object is local.</param>
 /// <param name="SortKey">.</param>
 public StreamRecordWrapper(SparcCountRecord TotalCounts = null, string ActivityTime = null, string HighlightMatch = null, RatingsRecord Ratings = null, Object Record = null, string Recordtype = null, bool?IsNewTile = null, SparcCountRecord BadgeCounts = null, SparcActionRecord LastAction = null, bool?IsLocal = null, string SortKey = null)
 {
     this.TotalCounts    = TotalCounts;
     this.ActivityTime   = ActivityTime;
     this.HighlightMatch = HighlightMatch;
     this.Ratings        = Ratings;
     this.Record         = Record;
     this.Recordtype     = Recordtype;
     this.IsNewTile      = IsNewTile;
     this.BadgeCounts    = BadgeCounts;
     this.LastAction     = LastAction;
     this.IsLocal        = IsLocal;
     this.SortKey        = SortKey;
 }