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; } }
public ImgurTask UploadImage(byte[] imageData) { if (m_runningTask == null) { m_runningTask = CreateNewTask(); m_context.StartCoroutine(UploadImageAsync(imageData)); return(m_runningTask); } return(null); }
public ImgurAPI(MonoBehaviour context, string clientID) { m_clientID = clientID; m_context = context; m_runningTask = null; }