public DistractionEventPlainData(DistractionEventData data) { Id = data.Id; UserId = data.UserId.ToString(); Time = data.Time; EventType = data.EventType.ToString(); Data = data.Data; Synchronized = data.Synchronized; }
public static void SaveDistractionSessionData(DistractionEventData data) { var plainData = new DistractionEventPlainData(data); data.Id = SaveDistractionEventPlainData(plainData); }