public override Task <SaveRespondData> Save(SaveRequestData request, ServerCallContext context)
 {
     Console.WriteLine("Get Data Count: " + request.Devices.Count);
     return(Task.FromResult(new SaveRespondData
     {
         IsSucceed = true,
         Message = "Succeed"
     }));
 }
        public async Task <bool> SendData(IEnumerable <Device> deviceList)
        {
            if (!grpcSession.IsValid())
            {
                return(false);
            }

            var requestData = new SaveRequestData()
            {
                AuthToken = grpcSession.Token,
                ClientId  = grpcSession.ClientId,
            };

            requestData.Devices.AddRange(deviceList);

            SaveRespondData saveRespond = await grpcClient.SaveAsync(requestData);

            if (!saveRespond.IsSucceed)
            {
                Console.WriteLine("Save Message: " + saveRespond.Message);
            }

            return(true);
        }