Esempio n. 1
0
    /**
     * 用户活动奖励列表更新
     * @param humanSimpleRewardInfoData 活动奖励信息
     */
    public void GC_UPDATE_HUMAN_ACTIVITY_REWARD(InputMessage data)
    {
        HumanSimpleRewardInfoData humanSimpleRewardInfoData = new HumanSimpleRewardInfoData();
        int j;

        humanSimpleRewardInfoData.activityId = data.GetLong();        //活动id
        ArrayList stateListist     = new ArrayList();
        int       stateLististSize = data.GetShort();

        for (j = 0; j < stateLististSize; j++)
        {
            int stateListist_Datas = data.GetInt();            //活动领取状态数据
            stateListist.Add(stateListist_Datas);
        }
        humanSimpleRewardInfoData.stateListist = stateListist;
        ActivityHandler.Instance().GC_UPDATE_HUMAN_ACTIVITY_REWARD(humanSimpleRewardInfoData);
    }
Esempio n. 2
0
    /**
     * 用户活动奖励列表
     * @param humanSimpleRewardInfoData 活动奖励信息
     */
    public void GC_HUMAN_ACTIVITY_REWARD_DATA_LIST(InputMessage data)
    {
        int       i, size;
        ArrayList humanSimpleRewardInfoData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            HumanSimpleRewardInfoData humanSimpleRewardInfoData_Datas = new HumanSimpleRewardInfoData();
            int humanSimpleRewardInfoData_j;
            humanSimpleRewardInfoData_Datas.activityId = data.GetLong();
            ArrayList humanSimpleRewardInfoData_stateListist     = new ArrayList();
            int       humanSimpleRewardInfoData_stateLististSize = data.GetShort();
            for (humanSimpleRewardInfoData_j = 0; humanSimpleRewardInfoData_j < humanSimpleRewardInfoData_stateLististSize; humanSimpleRewardInfoData_j++)
            {
                int humanSimpleRewardInfoData_stateListist_Datas = data.GetInt();                        //活动领取状态数据
                humanSimpleRewardInfoData_stateListist.Add(humanSimpleRewardInfoData_stateListist_Datas);
            }
            humanSimpleRewardInfoData_Datas.stateListist = humanSimpleRewardInfoData_stateListist;
            humanSimpleRewardInfoData.Add(humanSimpleRewardInfoData_Datas);
        }
        ActivityHandler.Instance().GC_HUMAN_ACTIVITY_REWARD_DATA_LIST(humanSimpleRewardInfoData);
    }