Exemple #1
0
 public AccordionPageModel()
 {
     SimediaSDK       = new SimediaSDK("https://acute360.com/");
     instance         = this;
     OnProjectClicked = new Command(ProjectClicked);
     LoadData();
 }
 public TaskListPageModel()
 {
     sdk           = new SimediaSDK("https://acute360.com/");
     instance      = this;
     OnTaskClicked = new Command(TaskClicked);
     OnHelpClicked = new Command(HelpClicked);
 }
 public ProjectListPageModel()
 {
     SimediaSDK       = new SimediaSDK("https://acute360.com/");
     instance         = this;
     OnProjectClicked = new Command(ProjectClicked);
     OnHelpClicked    = new Command(HelpClicked);
     LoadData();
 }
        public ActivityService(SimediaSDK sdk) : base(sdk)
        {
            _serializerSettings = new JsonSerializerSettings
            {
                ContractResolver     = new CamelCasePropertyNamesContractResolver(),
                DateTimeZoneHandling = DateTimeZoneHandling.Utc,
                NullValueHandling    = NullValueHandling.Ignore
            };

            _serializerSettings.Converters.Add(new StringEnumConverter());
        }
 public AuthenticationService(SimediaSDK sdk) : base(sdk)
 {
     _serializerSettings = new JsonSerializerSettings
     {
         ContractResolver     = new CamelCasePropertyNamesContractResolver(),
         DateTimeZoneHandling = DateTimeZoneHandling.Utc,
         NullValueHandling    = NullValueHandling.Ignore
     };
     _userAccountRepository = new SingleObjectCacheRepository <Models.UserAccount, Data.RealmModels.UserAccount>();
     _serializerSettings.Converters.Add(new StringEnumConverter());
 }
        public AddTaskListPageModel()
        {
            OnAttachClicked = new Command(AttachClicked);
            speechReconizer = CrossSpeechRecognition.Current;
            instance        = this;
            speechReconizer
            .WhenListeningStatusChanged()
            .Subscribe(x => this.ListenText = x
                    ? "Listening..."
                    : ""
                       );
            sdk = new SimediaSDK("https://acute360.com/");
            this.speechReconizer = CrossSpeechRecognition.Current;
            FetchUsernameFromMemory();

            Attachment = new ObservableCollection <Attachment>();
            PageTitle  = TaskContentPageModel.Instance._Activiy.name;
        }
Exemple #7
0
        public TaskContentPageModel()
        {
            speechReconizer = CrossSpeechRecognition.Current;

            speechReconizer
            .WhenListeningStatusChanged()
            .Subscribe(x => this.ListenText = x
                    ? "Listening..."
                    : ""
                       );
            sdk = new SimediaSDK("https://acute360.com/");
            OnTaskEditClicked    = new Command(TaskEditClicked);
            instance             = this;
            this.speechReconizer = CrossSpeechRecognition.Current;
            SimediaSDK           = new SimediaSDK("https://acute360.com/");
            Init(TaskListPageModel.Instance.activitySelected);
            //PageTitle = TaskListPageModel.Instance.activitySelected.name;
        }
        public EditTaskListPageModel()
        {
            //_authenticationService = authenticationService;
            instance        = this;
            speechReconizer = CrossSpeechRecognition.Current;
            OnAttachClicked = new Command(AttachClicked);
            speechReconizer
            .WhenListeningStatusChanged()
            .Subscribe(x => this.ListenText = x
                    ? "Listening..."
                    : ""
                       );
            sdk = new SimediaSDK("https://acute360.com/");
            this.speechReconizer = CrossSpeechRecognition.Current;
            // configure the TapCommand with a method
            tapCommand = new Command(OnTapped);
            FetchUsernameFromMemory();
            PageTitle   = TaskContentPageModel.Instance.AttributesTaskLogSelected.idtasklog.ToString();
            Attachments = new ObservableCollection <Attachment>();

            Init(TaskContentPageModel.Instance.AttributesTaskLogSelected);
        }
Exemple #9
0
        public AccordionViewPage(ProjectAcute projec, ObservableCollection <Section> list)
        {
            instance = this;

            this.Title = projec.Name;
            var settings = new ToolbarItem
            {
                Icon    = "hamburger.png",
                Command = new Command(this.OpenMenu),
            };

            SimediaSDK = new SimediaSDK("https://acute360.com/");
            this.ToolbarItems.Add(settings);


            var template = new DataTemplate(typeof(TaskListPage));
            //var template = new DataTemplate(typeof(DefaultTemplate));


            var view = new AccordionView(template);

            //var view = new Page1(template);
            view.SetBinding(AccordionView.ItemsSourceProperty, "List");
            view.Template.SetBinding(AcuteSectionView.TitleProperty, "Title");
            view.Template.SetBinding(AcuteSectionView.DescriptionProperty, "Description");
            view.Template.SetBinding(AcuteSectionView.DueDateProperty, "DueDate");
            view.Template.SetBinding(AcuteSectionView.ItemsSourceProperty, "List");

            //view.BindingContext = new AccordionPageModel();

            view.BindingContext = new ViewModel
            {
                List = list
            };

            this.Content = view;
        }
 public ProjectEndpoint(SimediaSDK sdk)
     : base(sdk)
 {
 }
 public TaskLogEndpoint(SimediaSDK sdk)
     : base(sdk)
 {
 }
Exemple #12
0
 public ContentService(SimediaSDK sdk) : base(sdk)
 {
 }
 public UserEndpoint(SimediaSDK sdk)
     : base(sdk)
 {
 }
Exemple #14
0
 public ActivityEndpoint(SimediaSDK sdk)
     : base(sdk)
 {
 }
 public EndpointBase(SimediaSDK sdk)
 {
     this.Sdk = sdk;
 }
Exemple #16
0
 public override void Init(object initData)
 {
     sdk = new SimediaSDK("https://acute360.com/");
     FetchUsernameFromMemory();
 }