package com.sharefaith.thesharefaithapp.models;

import com.appideas.base.AiSTr;

import java.util.HashMap;

/**
 * Created by sfwebsitedev on 4/6/16.
 */
public class SFMoreModel
{
    /** URL of thumbnail for more model */
    public String mThumbnailURL = "";
    /** Path of thumbnail for more model*/
    public String mThumbnailPath = "";
    /** Title of more model*/
    public String mTitle = "";
    /** More model type*/
    public String mType = "";
    /** index of more model*/
    public int mPosition;

    /**
     * Constructor
     * @param data
     */
    public SFMoreModel( HashMap<String,String> data )
    {
        refreshMembers( data );
    }

    /**
     * Refresh MoreModel data
     * @param data
     */
    public void refreshMembers( HashMap<String,String> data )
    {
        this.mThumbnailURL = "";
        this.mThumbnailPath = "";
        this.mTitle = "";
        this.mType = "";
        this.mPosition = -1;

        this.mThumbnailURL = data.get( "thumbnailorigin" );
        this.mThumbnailPath = data.get( "thumbnail" );
        this.mTitle = data.get( "display_label" );
        this.mType = data.get( "sf_tag" );
        this.mPosition = AiSTr.denullifyInt(  data.get( "position_index" ) );
    }

}


