Beispiel #1
0
 public void GetContainerTags(ContainerID identity)
 {
     ShowLoader();
     PlayFabMultiplayerAPI.ListContainerImageTags(new ListContainerImageTagsRequest {
         ImageName = identity.containerName
     },
                                                  result => {
         HideLoader();
         string tags = "";
         foreach (var tag in result.Tags)
         {
             tags += "\n" + tag;
             if (tag.Equals("latest"))
             {
                 identity.containerTag = tag;
             }
         }
         InformTags(string.Format("Tags for '<b>{0}</b>':\n{1}", identity.containerName, tags), identity);
         Debug.Log("GOT TAGS OK: " + result.ToJson());
     },
                                                  error => {
         HideLoader();
         Debug.LogError("GET TAGS FAILED: " + error.ToString());
         Inform("Failed to retrieve information for the container!\n\n" + error.ErrorMessage);
     });
 }