// Token: 0x0600150C RID: 5388 RVA: 0x0004AD7C File Offset: 0x00048F7C private static string[] GetAttachmentTypeIds(List <string> locationList, PolicyTipRequestLogger policyTipRequestLogger) { if (locationList == null) { return(null); } List <string> list = new List <string>(); foreach (string text in locationList) { if (!string.IsNullOrEmpty(text) && !text.Equals("Message Body", StringComparison.OrdinalIgnoreCase)) { int num = text.LastIndexOf(':'); if (num <= 0 || num == text.Length - 1) { policyTipRequestLogger.AppendData("InvalidAttachment", text); } else { string value = text.Substring(0, num); string text2 = text.Substring(num + 1); if (string.IsNullOrEmpty(value) || string.IsNullOrEmpty(text2)) { policyTipRequestLogger.AppendData("InvalidAttachment", text); } else { list.Add(text2); } } } } return(list.ToArray()); }
// Token: 0x0600150A RID: 5386 RVA: 0x0004ABF4 File Offset: 0x00048DF4 private static AttachmentIdType[] ConvertAttachmentIdsToAttachmentIdTypes(string[] attachmentIds, Item item, PolicyTipRequestLogger policyTipRequestLogger) { if (attachmentIds == null || attachmentIds.Length == 0) { return(null); } List <AttachmentIdType> list = new List <AttachmentIdType>(); foreach (string text in attachmentIds) { AttachmentId item2 = null; try { item2 = AttachmentId.Deserialize(text); } catch (CorruptDataException) { policyTipRequestLogger.AppendData("InvalidAttachment", text); } AttachmentIdType item3 = new AttachmentIdType(new IdAndSession(item.Id, item.Session, new List <AttachmentId> { item2 }).GetConcatenatedId().Id); list.Add(item3); } return(list.ToArray()); }