Exemplo n.º 1
0
    public void GetTotal(int userId, Coins.CoinsCallback callback)
    {
        GameJsonAuthConnection request = new GameJsonAuthConnection(
            Flow.URL_BASE + "login/items/get_user_coins.php", OnReceiveTotal);

        request.connect(
            (userId > 0)
                                        ? new WWWForm().Add("user_id", userId)
                                        : new WWWForm().Add("_", "empty"),
            new CoinsConnection(userId, callback)
            );
    }
Exemplo n.º 2
0
 public CoinsConnection(int userId, Coins.CoinsCallback callback)
 {
     this.callback = callback;
     this.userId   = userId;
 }
Exemplo n.º 3
0
		public CoinsConnection(int userId, Coins.CoinsCallback callback)
		{
			this.callback = callback;
			this.userId = userId;
		}