Beispiel #1
0
        public async Task <FortDetailsResponse> GetFort(string fortId, double fortLatitude, double fortLongitude)
        {
            var message = new FortDetailsMessage
            {
                FortId    = fortId,
                Latitude  = fortLatitude,
                Longitude = fortLongitude
            };

            return(await PostProtoPayload <Request, FortDetailsResponse>(RequestType.FortDetails, message));
        }
Beispiel #2
0
        public async Task <FortDetailsResponse> GetFort(string fortId, double fortLat, double fortLng)
        {
            FortDetailsMessage fortDetailsMessage = new FortDetailsMessage
            {
                FortId    = fortId,
                Latitude  = fortLat,
                Longitude = fortLng
            };

            return(await AwaitableOnResponseFor <FortDetailsMessage, FortDetailsResponse>(fortDetailsMessage, RequestType.FortDetails));
        }
Beispiel #3
0
        public async Task<FortDetailsResponse> GetFort(string fortId, double fortLatitude, double fortLongitude)
        {
            var message = new FortDetailsMessage
            {
                FortId = fortId,
                Latitude = fortLatitude,
                Longitude = fortLongitude
            };

            return await _baseRpc.PostProtoPayload<Request, FortDetailsResponse>(RequestType.FortDetails, message);
        }
Beispiel #4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="fortId"></param>
        /// <param name="fortLatitude"></param>
        /// <param name="fortLongitude"></param>
        /// <returns></returns>
        public bool QueueGetFortRequest(string fortId, double fortLatitude, double fortLongitude)
        {
            var message = new FortDetailsMessage
            {
                FortId    = fortId,
                Latitude  = fortLatitude,
                Longitude = fortLongitude
            };

            return(Client.QueueRequest(RequestType.FortDetails, message));
        }