public async Task <PPDevType> SetPPDevAsync(PPDevType pp, CancellationToken cancellationToken) { var request = new SetPPDev { PortablePart = pp, }; var response = await SendAsync <SetPPDev, SetPPDevResp>(request, cancellationToken).ConfigureAwait(false); return(response.PortablePart); }
public async Task <SetPPResp> SetPPAsync(PPDevType pp, PPUserType user, CancellationToken cancellationToken) { var request = new SetPP() { PortablePart = pp, User = user }; var response = await SendAsync <SetPP, SetPPResp>(request, cancellationToken).ConfigureAwait(false); return(response); }
public async Task CanDetachUser() { await CanLoginAsMOM(); var pp = new PPDevType() { Uid = 0x0, RelType = PPRelTypeType.Unbound, Ppn = 0x25 }; var user = new PPUserType() { Ppn = 0x0, Uid = 0x15, RelType = PPRelTypeType.Unbound }; await _client.SetPPAsync(pp, user, CancellationToken.None); }