예제 #1
0
        /// <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;
        }
예제 #2
0
        /// <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;
        }
예제 #3
0
        /// <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;
        }
예제 #4
0
 /// <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>
 /// 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;
 }
예제 #6
0
        /// <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;
        }
예제 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AnalyticsSystem"/> class.
 /// </summary>
 /// <param name="info">The info.</param>
 public AnalyticsSystem(AnalyticsInfo info)
 {
 }
예제 #8
0
        /// <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>
 /// 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;
 }