public UseItemCaptureResponse UseItemCapture(ulong encounterId, ItemId itemId, string spawnPointId) { var message = new UseItemCaptureMessage { EncounterId = encounterId, ItemId = itemId, SpawnPointId = spawnPointId }; return(PostProtoPayloadCommonR <Request, UseItemCaptureResponse>(RequestType.UseItemCapture, message).Result); }
public async Task <UseItemCaptureResponse> UseCaptureItem(ulong encounterId, ItemId itemId, string spawnPointGuid) { var message = new UseItemCaptureMessage { EncounterId = encounterId, ItemId = itemId, SpawnPointGuid = spawnPointGuid }; return(await PostProtoPayload <Request, UseItemCaptureResponse>(RequestType.UseItemCapture, message)); }
public async Task<UseItemCaptureResponse> UseCaptureItem(ulong encounterId, ItemId itemId, string spawnPointId) { var message = new UseItemCaptureMessage { EncounterId = encounterId, ItemId = itemId, SpawnPointId = spawnPointId }; return await PostProtoPayload<Request, UseItemCaptureResponse>(RequestType.UseItemCapture, message); }
public async Task <UseItemCaptureResponse> UseCaptureItem(ulong encounterId, ItemId itemId, string spawnPointGuid) { UseItemCaptureMessage useItemCaptureMessage = new UseItemCaptureMessage() { EncounterId = encounterId, ItemId = itemId, SpawnPointGuid = spawnPointGuid }; return(await AwaitableOnResponseFor <UseItemCaptureMessage, UseItemCaptureResponse>(useItemCaptureMessage, RequestType.UseItemCapture)); }
/// <summary> /// /// </summary> /// <param name="encounterId"></param> /// <param name="itemId"></param> /// <param name="spawnPointId"></param> /// <returns></returns> public bool QueueUseCaptureItemRequest(ulong encounterId, ItemId itemId, string spawnPointId) { var message = new UseItemCaptureMessage { EncounterId = encounterId, ItemId = itemId, SpawnPointId = spawnPointId }; return(Client.QueueRequest(RequestType.UseItemCapture, message)); }