protected override void AddParsedItemInternal(List <SecureItem> secureItems, List <string> messages, JObject jsonData) { if (jsonData == null) { throw new System.ArgumentNullException("jsonData"); } if (secureItems == null) { throw new System.ArgumentNullException("secureItems"); } if (messages == null) { throw new System.ArgumentNullException("messages"); } PBSubType.PersonalInfo.MemberIDs data = new PBSubType.PersonalInfo.MemberIDs(); data.MemberIdNickname = (string)jsonData["title"]; data.MemberIdFirstName = (string)jsonData["secureContents"]["member_name"]; data.MemberId = (string)jsonData["secureContents"]["membership_no"]; data.MemberIdNotes = (string)jsonData["secureContents"]["notesPlain"] + "; PIN:" + (string)jsonData["secureContents"]["pin"]; secureItems.Add(data.GetSecureItem()); }
protected override PasswordBoss.DTO.SecureItem GetSecureItemInternal(CsvExportItem exportItem, System.Collections.Generic.Dictionary <string, string> values) { var data = new PBSubType.PersonalInfo.MemberIDs(); data.MemberId = values[DictKeys.MembershipNumber]; data.MemberIdNickname = values[DictKeys.MembershipName]; data.MemberIdNotes = Helpers.GetValueFormated(values, DictKeys.Organization) + Helpers.GetValueFormated(values, DictKeys.StartDate) + Helpers.GetValueFormated(values, DictKeys.ExpirationDate) + Helpers.GetValueFormated(values, DictKeys.Website) + Helpers.GetValueFormated(values, DictKeys.Telephone) + Helpers.GetValueFormated(values, DictKeys.Password) + Helpers.GetValueFormated(values, DictKeys.Notes); return(data.GetSecureItem()); }