Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchShiftTradeResponse" /> class.
 /// </summary>
 /// <param name="Trade">A trade which matches search criteria.</param>
 /// <param name="MatchingReceivingShiftIds">IDs of shifts which match the search criteria.</param>
 /// <param name="Preview">A preview of what the shift trade would look like if matched.</param>
 public SearchShiftTradeResponse(ShiftTradeResponse Trade = null, List <string> MatchingReceivingShiftIds = null, ShiftTradePreviewResponse Preview = null)
 {
     this.Trade = Trade;
     this.MatchingReceivingShiftIds = MatchingReceivingShiftIds;
     this.Preview = Preview;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WeekShiftTradeResponse" /> class.
 /// </summary>
 /// <param name="Trade">The shift trade details.</param>
 /// <param name="MatchReview">A preview of what the schedule would look like if the shift trade is approved plus any violations.</param>
 public WeekShiftTradeResponse(ShiftTradeResponse Trade = null, ShiftTradeMatchReviewResponse MatchReview = null)
 {
     this.Trade       = Trade;
     this.MatchReview = MatchReview;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MatchShiftTradeResponse" /> class.
 /// </summary>
 /// <param name="Trade">The associated shift trade.</param>
 /// <param name="Violations">Constraint violations which disallow this shift trade.</param>
 /// <param name="AdminReviewViolations">Constraint violations for this shift trade which require shift trade administrator review.</param>
 public MatchShiftTradeResponse(ShiftTradeResponse Trade = null, List <ShiftTradeMatchViolation> Violations = null, List <ShiftTradeMatchViolation> AdminReviewViolations = null)
 {
     this.Trade                 = Trade;
     this.Violations            = Violations;
     this.AdminReviewViolations = AdminReviewViolations;
 }