Esempio n. 1
0
 public uTorrentAPI(LogFile log, string hash)
 {
     rest = new RestCommunicator(Constants.APIurl, "_utorrent");
     rest.Authenticate(Constants.UserName, Constants.PassWord);
     _log = log;
     _hash = hash;
     _token = GetToken();
     _torrents = GetTorrents(_hash, _token);
 }
Esempio n. 2
0
    public void ReportFoodSelection(string id)
    {
        this.id = id;
        Debug.Log("Requesting for id " + id);
        var com = new RestCommunicator();

        StartCoroutine(GetInitRecipe("https://mrshopper.azurewebsites.net/get_recipe?recipe_id=" + id));

        //Debug.Log("Requesting item");
        //initRecipe = MockInitRecipe();
        //RecipeReceived?.Invoke();
    }