Beispiel #1
0
 private void FinishRunningTask(string link, string error)
 {
     if (m_runningTask != null)
     {
         m_runningTask.Success = error == null;
         m_runningTask.Error   = error;
         m_runningTask.Link    = link;
         m_runningTask.Finish();
         m_runningTask = null;
     }
 }
Beispiel #2
0
        public ImgurTask UploadImage(byte[] imageData)
        {
            if (m_runningTask == null)
            {
                m_runningTask = CreateNewTask();
                m_context.StartCoroutine(UploadImageAsync(imageData));

                return(m_runningTask);
            }

            return(null);
        }
Beispiel #3
0
 public ImgurAPI(MonoBehaviour context, string clientID)
 {
     m_clientID    = clientID;
     m_context     = context;
     m_runningTask = null;
 }