public HistoryEvent(DocumentHistoryEvent oEvent) { EventTime = oEvent.date; Description = oEvent.description; VersionKey = oEvent.documentVersionKey; EventTypeID = (int)oEvent.type.Value; ActingUserEmail = oEvent.actingUserEmail; ActingUserIp = oEvent.actingUserIpAddress; ParticipantEmail = oEvent.participantEmail; Comment = oEvent.comment; Latitude = oEvent.deviceLocation == null ? null : oEvent.deviceLocation.latitude; Longitude = oEvent.deviceLocation == null ? null : oEvent.deviceLocation.longitude; SynchronizationKey = oEvent.synchronizationKey; } // constructor
private SpSaveSignedDocument.HistoryEvent ConvertEvent(DocumentHistoryEvent oEvent) { switch (oEvent.type) { case AgreementEventType.ESIGNED: case AgreementEventType.SIGNED: if (m_oSignerStatuses.ContainsKey(oEvent.participantEmail)) { m_oSignerStatuses[oEvent.participantEmail].SignatureTime = oEvent.date; } break; } // switch return(new SpSaveSignedDocument.HistoryEvent(oEvent)); } // ConvertEvent