Пример #1
0
        private async Task LoadDataApiLastChat()
        {
            var(apiStatus, respond) = await RequestsAsync.Message.Get_users_list_Async(UserDetails.UserId, UserDetails.UserId);

            if (apiStatus == 200 && respond is GetUsersListObject result)
            {
                if (result.Users.Count > 0)
                {
                    GlobalContext.LoadDataJsonLastChat(result);
                }
                else
                {
                    IsChatMessageLoaded = true;
                }
            }
            else
            {
                Methods.DisplayReportResult(Activity, respond);
            }
        }