public ProfileDetailsViewModel(MobiContext context, ProfileCache profile)
     : base(context)
 {
     this._profile           = profile;
     this._additionalImages  = ProfileThumbnail.CreateManager().Load(this.Profile, MobiChat.Data.ThumbnailIdentifier.NotDefault);
     this._descriptionValues = ProfileDetailValue.Generate(this.ProfileDetails);
 }
示例#2
0
        protected override void Convert(TextWriter writer, log4net.Core.LoggingEvent loggingEvent)
        {
            MobiContext context = MobiContext.GetExisting();
            string      id      = context != null && context.Session != null && context.Session.SessionData != null?
                                  context.Session.SessionData.ID.ToString() : "0";

            writer.Write(id);
        }
示例#3
0
        protected override void Convert(TextWriter writer, log4net.Core.LoggingEvent loggingEvent)
        {
            MobiContext context = MobiContext.Current;
            string      id      = context != null && context.SessionGuid != null?
                                  context.SessionGuid.ToString() : Guid.Empty.ToString();

            writer.Write(id);
        }
示例#4
0
        public TemplateIndexModel(MobiContext context, bool extenderAccess)
            : base(context, extenderAccess)
        {
            this._service = context.Service.ServiceData;

            //this._info = TemplateServiceInfo.CreateManager().Load(this._service);
            //this._note = TemplateServiceNote.CreateManager().Load(this._service, 1).FirstOrDefault();

            //this._transactions = DirectTransactionTable.TransactionCount(this.Context.Service.ServiceData);
            //this._userSessions = DirectUserSessionTable.UserSessionCount(this.Context.Service.ServiceData);
            //this._activeUserSessions = DirectUserSessionTable.UserSessionsActive(this.Context.Service.ServiceData);
        }
        public TranslationTemplateModel(MobiContext context, Translation translation, bool extendedAccess, string groupName)
            : base(context, extendedAccess)
        {
            this._translationKey = TranslationKey.CreateManager().Load(context.Service.ServiceData);
            if (this._translationKey == null)
            {
                this._hasTranslation = false;
                return;
            }

            this.Name              = groupName;
            this._fallbackKey      = this._translationKey.FallbackTranslationKey;
            this._translationGroup = TranslationGroup.CreateManager().Load(translation, groupName);

            this._values = new List <TranslationValueTemplate>();
            List <TranslationGroupKey> groupKeys = TranslationGroupKey.CreateManager().Load(this._translationGroup);

            foreach (TranslationGroupKey groupKey in groupKeys)
            {
                this._values.Add(new TranslationValueTemplate(this._translationKey, this._fallbackKey, groupKey));
            }
        }
        //public List<ContentGroup> ContentGroups { get { return this._contentGroup; } }
        //public List<ContentGroupType> ContentGroupType { get { return this._contentGroupType; } }
        //public List<Template> Templates { get { return this._templates; } }
        //public List<ServiceType> ServiceType { get { return this._serviceType; } }

        public TemplateConfigurationModel(MobiContext context, bool extendedAccess)
            : base(context, extendedAccess)
        {
        }
示例#7
0
 public InsertNumberModel(MobiContext context, ProfileCache profile)
     : base(context)
 {
     this._profile = profile;
 }
示例#8
0
 public TableModel(MobiContext context)
     : base(context)
 {
 }
示例#9
0
 public TemplateModelBase(MobiContext context, bool extendedAccess)
     : base(context)
 {
     this._extendedAccess = extendedAccess;
 }
示例#10
0
 public TemplateModelBase(MobiContext context)
     : base(context)
 {
     this._extendedAccess = true;
 }
示例#11
0
 public AgeVerificationViewModel(MobiContext context)
     : base(context)
 {
 }
示例#12
0
 public MobiViewModelBase(MobiContext context)
 {
     this._mobiContext = context;
 }
 public TemplateServiceUpdateLogoModel(MobiContext context, string message)
     : base(context)
 {
     this._message = message;
 }
示例#14
0
 public HomeListModel(MobiContext context)
     : base(context)
 {
 }
示例#15
0
 public ErrorViewModel(MobiContext context, string title, string text)
     : base(context)
 {
     this._title = title;
     this._text  = text;
 }
示例#16
0
 public ErrorViewModel(MobiContext context)
     : base(context)
 {
 }