public AnswerData(ExSigner signer) { string[] name = signer.givenName.Split(' '); if (name.Length > 1) { this.signer_fname = name[0]; this.rec_fname = name[0]; this.signer_patronymic = name[1]; this.rec_patronymic = name[1]; } else { this.signer_fname = signer.givenName; this.rec_fname = signer.givenName; this.signer_patronymic = signer.givenName; this.rec_patronymic = signer.givenName; } this.signer_sname = signer.surName; this.rec_sname = signer.surName; this.signer_position = signer.orgPosition; this.rec_position = signer.orgPosition; this.signer_inn = signer.inn; }
public CreateTicketRequest(string authToken, string identifier, ExSigner signer) { this.identifier = identifier; base.varToken = authToken; this.signer_fname = signer.givenName; this.signer_sname = signer.surName; this.signer_position = signer.orgPosition; this.signer_inn = signer.inn; }
public AnswerData(ExSigner signer, RecieptInformation recieptInfo) { string[] name = signer.givenName.Split(' '); if (name.Length > 1) { this.signer_fname = name[0]; this.signer_patronymic = name[1]; } else { this.signer_fname = signer.givenName; this.signer_patronymic = signer.givenName; } this.signer_sname = signer.surName; this.signer_position = signer.orgPosition; this.signer_inn = signer.inn; this.rec_date = recieptInfo.receptionDate; this.rec_fname = recieptInfo.receptionistFirstName; this.rec_patronymic = recieptInfo.receptionistPatronymic; this.rec_position = recieptInfo.receptionistPosition; this.rec_sname = recieptInfo.receptionistSurName; }