/// <summary> /// Modifies a series of SSI items on the server-side list -- SNAC(13,09) /// </summary> /// <param name="sess">A <see cref="Session"/> object</param> /// <param name="items">An array of <see cref="SSIItem"/> objects</param> public static void ModifySSIItems(Session sess, SSIItem[] items) { SNACHeader sh = new SNACHeader(); sh.FamilyServiceID = (ushort) SNACFamily.SSIService; sh.FamilySubtypeID = (ushort) SSIService.SSIEditUpdateGroupHeader; ByteStream stream = new ByteStream(); stream.WriteSSIItems(items); sess.SSI.OutstandingRequests++; SNACFunctions.BuildFLAP(Marshal.BuildDataPacket(sess, sh, stream)); }
/// <summary> /// Removes a series of SSI items from the server-side list -- SNAC(13,0A) /// </summary> /// <param name="sess"></param> /// <param name="items">An array of <see cref="SSIItem"/> objects</param> public static void RemoveSSIItems(Session sess, SSIItem[] items) { SNACHeader sh = new SNACHeader(); sh.FamilyServiceID = (ushort)SNACFamily.SSIService; sh.FamilySubtypeID = (ushort)SSIService.SSIEditRemoveItem; ByteStream stream = new ByteStream(); stream.WriteSSIItems(items); sess.SSI.OutstandingRequests++; SNACFunctions.BuildFLAP(Marshal.BuildDataPacket(sess, sh, stream)); }