public PostViewModel(ThreadItem thread) { Console.Write("postviewmodel load\n"); Thread = thread; AgoraService = new AgoraService(thread); Title = thread.Topic; Posts = new ObservableCollection <PostItem>(); LoadPostCommand = new Command(async() => await ExecuteLoadPostCommand()); SendPostCommand = new Command <String>(async(UserPost) => await ExecuteSubmitPostAsync(UserPost)); }
/// <summary> /// Init this instance. /// </summary> public static void Init() { AgoraService.Init(new AgoraServiceImplementation()); }