Esempio n. 1
0
		public DataManager ()
		{
			httpClient = new HttpClient (new NativeMessageHandler ());
			httpClientNoHeader = new HttpClient(new NativeMessageHandler());
			httpClient.DefaultRequestHeaders.Add("apiKey", App.StoredApiKey);
			EventApiManager = new EventApiManager (httpClient);
			ProfileApiManager = new ProfileApiManager (httpClient);
			GroupApiManager = new GroupApiManager (httpClient);
			//OrganizationApiManager = new OrganizationApiManager(httpClient);
			MessageApiManager = new MessageApiManager(httpClient);
			UtilityManager = new UtilityManager ();
		}
		public ConversationView(List<Comment> coms, MessageApiManager.CommentType mT, string id, StackLayout layout)
		//public ConversationView(List<Comment> coms, MessageApiManager.CommentType mT, string id)
		{
			InitializeComponent();
			commentView.IsVisible = true;
			comments = coms;
			entryTop.IsVisible = true;
			commentList.ItemSelected += OnItemSelected;
			type = mT;
			ConversationId = id;
			wallLayout = layout;

			UpdateList(true);
			postCommentButtonTop.Clicked += async (sender, e) => { await PostNewComment(commentEntryTop.Text); };
			setSize(false);
		}