Ejemplo n.º 1
0
 /// <summary>
 /// Edit the affiliations of an entity associated with a given node or set the affiliations for a new entity.
 /// The owner MUST send only modified affiliations (i.e., a "delta"), not the complete list.
 /// </summary>
 /// <param name="iqSender">The <see cref="IClientIqSender"/></param>
 /// <param name="to">Jid of the PubSub service.</param>
 /// <param name="node">The node.</param>
 /// <param name="affiliations">The affiliations.</param>
 /// <param name="timeout">The timeout in milliseconds.</param>
 /// <param name="cancellationToken">The cancellation token used to cancel the request.</param>
 /// <returns></returns>
 public static async Task <Iq> ModifyAffiliationsListAsync(
     this IClientIqSender iqSender, Jid to, string node, Xmpp.PubSub.Owner.Affiliation[] affiliations, int timeout, CancellationToken cancellationToken)
 {
     return(await iqSender.SendIqAsync(PubSubBuilder.ModifyAffiliations(to, node, affiliations), timeout, cancellationToken));
 }