public AudienceStateEventIdDtoWrapper(AudienceStateEventId val) { if (val == null) { throw new ArgumentNullException("val"); } this._value = val; }
public virtual AudienceStateEventId ToAudienceStateEventId() { AudienceStateEventId v = new AudienceStateEventId(); v.ClientId = this.ClientId; v.Version = this.Version; return(v); }
protected AudienceStateDeleted NewAudienceStateDeleted(string commandId, string requesterId) { var stateEventId = new AudienceStateEventId(_state.ClientId, ((IAudienceStateProperties)_state).Version); var e = NewAudienceStateDeleted(stateEventId); e.CommandId = commandId; e.CreatedBy = (string)requesterId; e.CreatedAt = DateTime.Now; return(e); }
protected virtual IAudienceStateDeleted Map(IDeleteAudience c) { var stateEventId = new AudienceStateEventId(c.ClientId, c.Version); IAudienceStateDeleted e = NewAudienceStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }
protected virtual IAudienceStateCreated Map(ICreateAudience c) { var stateEventId = new AudienceStateEventId(c.ClientId, c.Version); IAudienceStateCreated e = NewAudienceStateCreated(stateEventId); e.Name = c.Name; e.Base64Secret = c.Base64Secret; e.Active = c.Active; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; var version = c.Version; return(e); }
public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } AudienceStateEventId other = obj as AudienceStateEventId; if (other == null) { return(false); } return(true && Object.Equals(this.ClientId, other.ClientId) && Object.Equals(this.Version, other.Version) ); }
protected virtual IAudienceStateMergePatched Map(IMergePatchAudience c) { var stateEventId = new AudienceStateEventId(c.ClientId, c.Version); IAudienceStateMergePatched e = NewAudienceStateMergePatched(stateEventId); e.Name = c.Name; e.Base64Secret = c.Base64Secret; e.Active = c.Active; e.IsPropertyNameRemoved = c.IsPropertyNameRemoved; e.IsPropertyBase64SecretRemoved = c.IsPropertyBase64SecretRemoved; e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; var version = c.Version; return(e); }
private AudienceStateDeleted NewAudienceStateDeleted(AudienceStateEventId stateEventId) { return(new AudienceStateDeleted(stateEventId)); }
private AudienceStateMergePatched NewAudienceStateMergePatched(AudienceStateEventId stateEventId) { return(new AudienceStateMergePatched(stateEventId)); }
protected AudienceStateEventBase(AudienceStateEventId stateEventId) { this.StateEventId = stateEventId; }
public AudienceStateDeleted(AudienceStateEventId stateEventId) : base(stateEventId) { }
public AudienceStateMergePatched(AudienceStateEventId stateEventId) : base(stateEventId) { }
public AudienceStateCreated(AudienceStateEventId stateEventId) : base(stateEventId) { }
public AudienceStateEventIdFlattenedDto(AudienceStateEventId val) { this._value = new AudienceStateEventIdDtoWrapper(val); }