/// <summary> /// Initializes a new instance of the <see cref="Localytics"/> class. /// </summary> /// <param name="adapter">The adapter.</param> /// <param name="analyticsInfo">The analytics info.</param> public Localytics(IAdapter adapter, AnalyticsInfo analyticsInfo) : base(adapter, analyticsInfo) { LocalyticsInfo info = analyticsInfo as LocalyticsInfo; this.appKey = info.AppKey; }
/// <summary> /// Initializes a new instance of the <see cref="Localytics"/> class. /// </summary> /// <param name="analyticsInfo">The analytics info.</param> public Localytics(AnalyticsInfo analyticsInfo) : base(analyticsInfo) { LocalyticsInfo info = analyticsInfo as LocalyticsInfo; this.appKey = info.AppKey; }
/// <summary> /// Sets the analytics system. /// </summary> /// <param name="analyticsInfo">The analytics info.</param> public void SetAnalyticsSystem(AnalyticsInfo analyticsInfo) { // REVIEW: Porque no lanzar la excepcion aqui si no es valido? O anadir un metodo IsValidSystem, que se puede usar para evitar esa excepcion? // O un TrySet que devuelva un bool? var args = new object[] { this.adapter, analyticsInfo }; this.analyticsSystem = Activator.CreateInstance(analyticsInfo.InternalType, args) as AnalyticsSystem; }
/// <summary> /// Initializes a new instance of the <see cref="AnalyticsSystem"/> class. /// </summary> /// <param name="adapter">The adapter.</param> /// <param name="info">The info.</param> public AnalyticsSystem(IAdapter adapter, AnalyticsInfo info) { this.Adapter = adapter; }
/// <summary> /// Sets the analytics system. /// </summary> /// <param name="analyticsInfo">The analytics info.</param> public void SetAnalyticsSystem(AnalyticsInfo analyticsInfo) { var args = new object[] { analyticsInfo }; this.analyticsSystem = Activator.CreateInstance(analyticsInfo.InternalType, args) as AnalyticsSystem; }
/// <summary> /// Initializes a new instance of the <see cref="AnalyticsSystem"/> class. /// </summary> /// <param name="info">The info.</param> public AnalyticsSystem(AnalyticsInfo info) { }