// Path: app/src/main/java/com/jaspervanriet/huntingthatproduct/Views/Adapters/CommentListAdapter.java
// public class CommentListAdapter extends RecyclerView.Adapter<CommentListAdapter
// 		.CommentsViewHolder> {
// 
// 	private List<Comment> mComments;
// 	private Context mContext;
// 
// 	public CommentListAdapter (Context context, List<Comment> comments) {
// 		this.mContext = context;
// 		this.mComments = comments;
// 	}
// 
// 	@Override
// 	public int getItemCount () {
// 		return mComments.size ();
// 	}
// 
// 	@Override
// 	public CommentsViewHolder onCreateViewHolder (ViewGroup viewGroup, int viewType) {
// 		View itemView = LayoutInflater.
// 				from (viewGroup.getContext ()).
// 				inflate (R.layout.item_comment, viewGroup, false);
// 		return new CommentsViewHolder (itemView);
// 	}
// 
// 	@Override
// 	public void onBindViewHolder (CommentsViewHolder holder, int position) {
// 		Comment comment = mComments.get (position);
// 		LinearLayout.MarginLayoutParams params = (LinearLayout.MarginLayoutParams) holder
// 				.commentLayout.getLayoutParams ();
// 		params.setMargins (comment.getLevel () * 30, 0, 0, 0);
// 		holder.commentLayout.setLayoutParams (params);
// 		loadComment (holder, position);
// 	}
// 
// 	private void loadComment (CommentsViewHolder holder, int position) {
// 		Comment comment = mComments.get (position);
// 		User user = comment.getUser ();
// 		holder.comment.setText (Html.fromHtml (comment.getBody ()));
// 		holder.name.setText (Html.fromHtml (user.getName ()) + " -  @"
// 				+ Html.fromHtml (user.getUsername ()));
// 		if (comment.isMaker ()) {
// 			holder.name.setTextColor (mContext.getResources ()
// 					.getColor (R.color.text_indicator_maker));
// 		} else {
// 			holder.name.setTextColor (mContext.getResources ().getColor
// 					(R.color.text_default));
// 		}
// 		if (user.getHeadline () != null) {
// 			holder.headline.setText (Html.fromHtml (user.getHeadline ()));
// 		}
// 		Picasso.with (mContext).load (user.getImageUrl ().getLargeImgUrl ())
// 				.resize (ViewUtils.dpToPx (56), ViewUtils.dpToPx (56))
// 				.centerCrop ()
// 				.transform (new CircleTransform ())
// 				.into (holder.avatar);
// 	}
// 
// 	static class CommentsViewHolder extends RecyclerView.ViewHolder {
// 
// 		@BindView (R2.id.comment_text)
// 		TextView comment;
// 		@BindView (R2.id.comment_avatar)
// 		ImageView avatar;
// 		@BindView (R2.id.comment_layout)
// 		LinearLayout commentLayout;
// 		@BindView (R2.id.comment_name)
// 		TextView name;
// 		@BindView (R2.id.comment_headline)
// 		TextView headline;
// 
// 		public CommentsViewHolder (View itemView) {
// 			super (itemView);
// 			ButterKnife.bind (this, itemView);
// 		}
// 	}
// }


import android.content.Context;
import com.jaspervanriet.huntingthatproduct.Views.Adapters.CommentListAdapter;
/*
 * Copyright (C) 2015 Jasper van Riet
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.jaspervanriet.huntingthatproduct.Views;



public interface CommentsView {

	void initializeRecyclerView ();

	void initializeToolBar ();

// Path: app/src/main/java/com/jaspervanriet/huntingthatproduct/Views/Adapters/CommentListAdapter.java
// public class CommentListAdapter extends RecyclerView.Adapter<CommentListAdapter
// 		.CommentsViewHolder> {
// 
// 	private List<Comment> mComments;
// 	private Context mContext;
// 
// 	public CommentListAdapter (Context context, List<Comment> comments) {
// 		this.mContext = context;
// 		this.mComments = comments;
// 	}
// 
// 	@Override
// 	public int getItemCount () {
// 		return mComments.size ();
// 	}
// 
// 	@Override
// 	public CommentsViewHolder onCreateViewHolder (ViewGroup viewGroup, int viewType) {
// 		View itemView = LayoutInflater.
// 				from (viewGroup.getContext ()).
// 				inflate (R.layout.item_comment, viewGroup, false);
// 		return new CommentsViewHolder (itemView);
// 	}
// 
// 	@Override
// 	public void onBindViewHolder (CommentsViewHolder holder, int position) {
// 		Comment comment = mComments.get (position);
// 		LinearLayout.MarginLayoutParams params = (LinearLayout.MarginLayoutParams) holder
// 				.commentLayout.getLayoutParams ();
// 		params.setMargins (comment.getLevel () * 30, 0, 0, 0);
// 		holder.commentLayout.setLayoutParams (params);
// 		loadComment (holder, position);
// 	}
// 
// 	private void loadComment (CommentsViewHolder holder, int position) {
// 		Comment comment = mComments.get (position);
// 		User user = comment.getUser ();
// 		holder.comment.setText (Html.fromHtml (comment.getBody ()));
// 		holder.name.setText (Html.fromHtml (user.getName ()) + " -  @"
// 				+ Html.fromHtml (user.getUsername ()));
// 		if (comment.isMaker ()) {
// 			holder.name.setTextColor (mContext.getResources ()
// 					.getColor (R.color.text_indicator_maker));
// 		} else {
// 			holder.name.setTextColor (mContext.getResources ().getColor
// 					(R.color.text_default));
// 		}
// 		if (user.getHeadline () != null) {
// 			holder.headline.setText (Html.fromHtml (user.getHeadline ()));
// 		}
// 		Picasso.with (mContext).load (user.getImageUrl ().getLargeImgUrl ())
// 				.resize (ViewUtils.dpToPx (56), ViewUtils.dpToPx (56))
// 				.centerCrop ()
// 				.transform (new CircleTransform ())
// 				.into (holder.avatar);
// 	}
// 
// 	static class CommentsViewHolder extends RecyclerView.ViewHolder {
// 
// 		@BindView (R2.id.comment_text)
// 		TextView comment;
// 		@BindView (R2.id.comment_avatar)
// 		ImageView avatar;
// 		@BindView (R2.id.comment_layout)
// 		LinearLayout commentLayout;
// 		@BindView (R2.id.comment_name)
// 		TextView name;
// 		@BindView (R2.id.comment_headline)
// 		TextView headline;
// 
// 		public CommentsViewHolder (View itemView) {
// 			super (itemView);
// 			ButterKnife.bind (this, itemView);
// 		}
// 	}
// }


// Path: app/src/main/java/com/jaspervanriet/huntingthatproduct/Views/CommentsView.java
import android.content.Context;
import com.jaspervanriet.huntingthatproduct.Views.Adapters.CommentListAdapter;

/*
 * Copyright (C) 2015 Jasper van Riet
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.jaspervanriet.huntingthatproduct.Views;



public interface CommentsView {

	void initializeRecyclerView ();

	void initializeToolBar ();

	void setAdapterForRecyclerView (CommentListAdapter adapter);