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)); }
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)); }
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); }
/// <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)); }