protected TargetingTypeGroupBasketSecurityBaseValueChangesetInfo DeserializeTargetingTypeGroupBasketSecurityBaseValueChangeset(ChangesetModel model) { var result = new TargetingTypeGroupBasketSecurityBaseValueChangesetInfo( model.Id, model.Username, model.Timestamp, model.CalculationId ); return(result); }
protected override void ApplyChangeset(Changeset changeset, Int32 changesetId, Int32 computationId, IDataManager manager) { var changesetInfo = new TargetingTypeGroupBasketSecurityBaseValueChangesetInfo( changesetId, changeset.Username, DateTime.Now, // <-- is going to be ignored computationId ); manager.InsertTargetingTypeGroupBasketSecurityBaseValueChangeset(changesetInfo); }
public TargetingTypeGroupBasketSecurityBaseValueChangesetInfo DeserializeLatestBaseChangeset(JsonReader reader) { var result = new TargetingTypeGroupBasketSecurityBaseValueChangesetInfo( reader.ReadAsInt32(JsonNames.Id), reader.ReadAsString(JsonNames.Username), reader.ReadAsDatetime(JsonNames.Timestamp), reader.ReadAsInt32(JsonNames.CalcualtionId) ); return(result); }
public RootModel( TargetingTypeGroupBasketSecurityBaseValueChangesetInfo latestBaseChangeset, BasketPortfolioSecurityTargetChangesetInfo latestPortfolioTargetChangeset, CoreModel core, DateTime benchmarkDate ) { this.LatestBaseChangeset = latestBaseChangeset; this.LatestPortfolioTargetChangeset = latestPortfolioTargetChangeset; this.Core = core; this.BenchmarkDate = benchmarkDate; }
public Changeset( Int32 targetingTypeGroupId, Int32 basketId, TargetingTypeGroupBasketSecurityBaseValueChangesetInfo latestChangesetInfo, String username, IEnumerable <IChange> changes ) { this.TargetingTypeGroupId = targetingTypeGroupId; this.BasketId = basketId; this.LatestChangesetSnapshot = latestChangesetInfo; this.Username = username; this.Changes = changes.ToList(); }
public void Resolve(TargetingTypeGroupBasketSecurityBaseValueChangesetInfo changesetInfo) { this.Result = "Targeting-type-group/Basket/Security base"; }
public void SerializeLatestBaseChangeset( TargetingTypeGroupBasketSecurityBaseValueChangesetInfo latestChangesetInfo, IJsonWriter writer) { this.SerializeChangeset(latestChangesetInfo, writer); }