Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Init this instance.
 /// </summary>
 public static void Init()
 {
     AgoraService.Init(new AgoraServiceImplementation());
 }