コード例 #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));
        }
コード例 #2
0
ファイル: Client.cs プロジェクト: TagsRocks/NecroBot
        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));
        }
コード例 #3
0
ファイル: ApiFort.cs プロジェクト: ChainsawPolice/HaxtonBot
        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);
        }
コード例 #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));
        }