Пример #1
0
    // Token: 0x060010B1 RID: 4273 RVA: 0x001D92B8 File Offset: 0x001D74B8
    public ushort CheckArenaClose()
    {
        ushort result = 0;

        if (this.bArenaKVK)
        {
            result = 9109;
        }
        else if (this.m_ArenaClose_CDTime != 0L)
        {
            EActivityType arenaClose_ActivityType = this.m_ArenaClose_ActivityType;
            if (arenaClose_ActivityType != EActivityType.EAT_KingOfTheWorld)
            {
                if (arenaClose_ActivityType == EActivityType.EAT_FederalEvent)
                {
                    result = 11107;
                }
            }
            else
            {
                result = 10018;
            }
        }
        return(result);
    }
Пример #2
0
        /// <summary>
        /// 构造函数,创建一个指定活动记录时间、活动编号,分支名称,发起账户ID、活动类型和活动注释的活动记录器实例。
        /// </summary>
        /// <param name="recordTime">指定的活动时间。</param>
        /// <param name="activityId">指定的活动编号。</param>
        /// <param name="branch">指定的分支名称。</param>
        /// <param name="accountId">指定的发起账户ID。</param>
        /// <param name="activityType">指定的活动类型。</param>
        /// <param name="repositoryManager">指定记录的版本仓库。</param>
        /// <param name="description">指定的活动注释信息。</param>
        public ActivityRecorder(DateTime recordTime, long activityId, string branch, string accountId, EActivityType activityType, RepositoryManager repositoryManager, string description)
        {
            string activityTypeString = EnumerationDescriptionAttribute.GetEnumDescription(activityType);

            _recordTime        = recordTime;
            _activityId        = activityId;
            _activityType      = activityType;
            _repositoryManager = repositoryManager;
            if (string.IsNullOrWhiteSpace(branch))
            {
                _branch = @"master";
            }
            else
            {
                _branch = branch;
            }
            if (string.IsNullOrWhiteSpace(accountId))
            {
                _accountId = EnvironmentInformation.GetCurrentUserName();
            }
            else
            {
                _accountId = accountId;
            }
            if (string.IsNullOrWhiteSpace(description))
            {
                _description = _recordTime.ToString() + "--" + activityTypeString;
            }
            else
            {
                _description = description;
            }
        }
Пример #3
0
        [Route("Type/{type}")] // api/Activities/Type/{type}
        public async Task <IEnumerable <QActivitiesByType> > GetAllByTypeAsync(EActivityType type)
        {
            if (!Enum.IsDefined(typeof(EActivityType), type))
            {
                return(new List <QActivitiesByType>());
            }

            return(await activitiesRepository.GetAllByTypeAsync(type));
        }
Пример #4
0
        public async Task <IEnumerable <QActivitiesByType> > GetAllByTypeAsync(EActivityType type)
        {
            var activities = await(from a in GetDbSet()
                                   join c in course on a.CourseId equals c.Id
                                   join s in students on a.StudentId equals s.Id
                                   where (EActivityType)a.ActivityType == type
                                   select new QActivitiesByType()
            {
                StudentName   = s.StudentName,
                CourseName    = c.CourseName,
                DatePresented = a.DatePresented,
                ActivityType  = (EActivityType)a.ActivityType
            })
                             .ToListAsync();

            return(activities);
        }
Пример #5
0
 private const string VCS_ACTIVITY_RECORD_LOG_DBTABLE = @"activityRecordLog"; //本地文件版本控制系统活动记录数据表名称。
 /// <summary>
 /// 构造函数,创建一个指定活动记录时间、活动编号,分支名称,发起账户ID和活动类型的活动记录器实例。
 /// </summary>
 /// <param name="recordTime">指定的活动时间。</param>
 /// <param name="activityId">指定的活动编号。</param>
 /// <param name="branch">指定的分支名称。</param>
 /// <param name="accountId">指定的发起账户ID。</param>
 /// <param name="activityType">指定的活动类型。</param>
 /// <param name="repositoryManager">指定记录的版本仓库。</param>
 public ActivityRecorder(DateTime recordTime, long activityId, string branch, string accountId, EActivityType activityType, RepositoryManager repositoryManager)
 {
     _recordTime        = recordTime;
     _activityId        = activityId;
     _activityType      = activityType;
     _repositoryManager = repositoryManager;
     if (string.IsNullOrWhiteSpace(branch))
     {
         _branch = @"master";
     }
     else
     {
         _branch = branch;
     }
     if (string.IsNullOrWhiteSpace(accountId))
     {
         _accountId = EnvironmentInformation.GetCurrentUserName();
     }
     else
     {
         _accountId = accountId;
     }
 }
Пример #6
0
        public static EActivityType IntToEActivityType(int val)
        {
            EActivityType _rVal = EActivityType.Normal;

            switch (val)
            {
            case 1:
                _rVal = EActivityType.Exchange;
                break;

            case 2:
                _rVal = EActivityType.GroupBuy;
                break;

            case 3:
                _rVal = EActivityType.GroupProduct;
                break;

            default:
                break;
            }

            return(_rVal);
        }
Пример #7
0
 public void InitWithBaseScene(bool isCheck, EActivityType type)
 {
     this.ActivityType = type;
     this.mIsChecked = isCheck;
     this.CreateObjects();
     base.gameObject.name = string.Format("b{0}", (int)type);
 }
Пример #8
0
 private GUIRewardCheckBtn InitActivityCheckBtn(EActivityType type, string title)
 {
     if (this.RewardCheckBtnPrefab == null)
     {
         this.RewardCheckBtnPrefab = Res.LoadGUI("GUI/GUIRewardCheckBtn");
     }
     if (this.RewardCheckBtnPrefab == null)
     {
         global::Debug.LogError(new object[]
         {
             "Res.Load GUI/GUIRewardCheckBtn error"
         });
         return null;
     }
     GameObject gameObject = Tools.AddChild(this.mTabBtnsTable.gameObject, this.RewardCheckBtnPrefab);
     GUIRewardCheckBtn gUIRewardCheckBtn = gameObject.AddComponent<GUIRewardCheckBtn>();
     gUIRewardCheckBtn.InitWithBaseScene(false, type);
     gUIRewardCheckBtn.Text = title;
     GUIRewardCheckBtn expr_75 = gUIRewardCheckBtn;
     expr_75.CheckChangeCallbackEvent = (GUIRewardCheckBtn.CheckChangeCallback)Delegate.Combine(expr_75.CheckChangeCallbackEvent, new GUIRewardCheckBtn.CheckChangeCallback(this.OnActivityCheckBtnsChanged));
     return gUIRewardCheckBtn;
 }
Пример #9
0
 public void GetActivityDesc(EActivityType type)
 {
     MC2S_GetActivityDesc mC2S_GetActivityDesc = new MC2S_GetActivityDesc();
     mC2S_GetActivityDesc.Type = (int)type;
     Globals.Instance.CliSession.Send(743, mC2S_GetActivityDesc);
 }
Пример #10
0
 public ToDo(string name, DateTime date, EActivityType activityType)
 {
     Name         = name;
     Date         = date;
     ActivityType = activityType;
 }
Пример #11
0
 public ToDo(string name, EActivityType activityType)
     : this(name, DateTime.Now, activityType)
 {
 }
Пример #12
0
 public MS2C_GetActivityDesc GetActivityDescData(EActivityType type)
 {
     MS2C_GetActivityDesc result = null;
     this.ActivityDescs.TryGetValue(type, out result);
     return result;
 }