Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
 }
Ejemplo n.º 4
0
        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));
        }
Ejemplo n.º 5
0
        /// <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));
        }