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); }
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); }
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); }
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) { }
public InsertNumberModel(MobiContext context, ProfileCache profile) : base(context) { this._profile = profile; }
public TableModel(MobiContext context) : base(context) { }
public TemplateModelBase(MobiContext context, bool extendedAccess) : base(context) { this._extendedAccess = extendedAccess; }
public TemplateModelBase(MobiContext context) : base(context) { this._extendedAccess = true; }
public AgeVerificationViewModel(MobiContext context) : base(context) { }
public MobiViewModelBase(MobiContext context) { this._mobiContext = context; }
public TemplateServiceUpdateLogoModel(MobiContext context, string message) : base(context) { this._message = message; }
public HomeListModel(MobiContext context) : base(context) { }
public ErrorViewModel(MobiContext context, string title, string text) : base(context) { this._title = title; this._text = text; }
public ErrorViewModel(MobiContext context) : base(context) { }