public void UpdateProfileImage(string channelId, string imageUrl, AtlasManager.AtlasInfo atlasInfo)
 {
     listenerDataList.Where(d => d.channelId == channelId).ToList().ForEach(x => {
         x.profileImageUrl = imageUrl;
         x.iconAtlasInfo   = atlasInfo;
     });
 }
        private IEnumerator CacheListenerProfileImage(string channelId, string imageUrl)
        {
            UnityWebRequest webRequest = UnityWebRequestTexture.GetTexture(imageUrl);

            yield return(webRequest.SendWebRequest());

            if (webRequest.isHttpError || webRequest.isNetworkError)
            {
                Debug.LogError(webRequest.error);
            }
            else
            {
                AtlasManager.AtlasInfo atlasInfo = atlasManager.AddIconTextureToAtlas(DownloadHandlerTexture.GetContent(webRequest));
                _listenersData.UpdateProfileImage(channelId, imageUrl, atlasInfo);
            }
            webRequest.Dispose();
        }
 public ListenerData(string id, string url, AtlasManager.AtlasInfo atlasInfo)
 {
     channelId       = id;
     profileImageUrl = url;
     iconAtlasInfo   = atlasInfo;
 }