MVP+OKhttp,拦截器+Rxjava+RecyclerView 全选反选,隐藏,显示切换标题

   全选反选,隐藏,显示切换标题

     

          效果图


                                      

  

  点击完成显示,点击编辑隐藏,点击全选可全选

  首先先导入依赖

[html]  view plain  copy
  1. compile 'com.facebook.fresco:fresco:0.11.0'  
  2. compile 'io.reactivex:rxjava:1.0.14'  
  3. compile 'com.squareup.retrofit2:adapter-rxjava:2.0.0-beta4'  
  4. compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'  
  5. compile 'com.squareup.okhttp3:okhttp:3.9.0'  
  6. compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'  
  7. compile 'com.squareup.okio:okio:1.13.0'  
  8. compile 'io.reactivex:rxandroid:1.0.1'  

再在清单文件里添加网络权限

[html]  view plain  copy
  1. <uses-permission android:name="android.permission.INTERNET"></uses-permission>  
  2.      

 MainActivity

[html]  view plain  copy
  1. public class MainActivity extends AppCompatActivity implements Iview {  
  2.   
  3.     private Presenters presenters;  
  4.     private TextView mBianji;  
  5.     private RecyclerView mRv;  
  6.     private CheckBox mSelectall;  
  7.     private LinearLayout mLl;  
  8.     List<Beans.SongListBean> listBeen;  
  9.     boolean isShow=true;  
  10.     @Override  
  11.     protected void onCreate(Bundle savedInstanceState) {  
  12.         super.onCreate(savedInstanceState);  
  13.         Fresco.initialize(this);  
  14.         setContentView(R.layout.activity_main);  
  15.         presenters = new Presenters(this, this);  
  16.         initView();  
  17.   
  18.         presenters.getData();  
  19.     }  
  20.     private void initView() {  
  21.         mBianji = (TextView) findViewById(R.id.bianji);  
  22.         mRv = (RecyclerView) findViewById(R.id.rv);  
  23.         mSelectall = (CheckBox) findViewById(R.id.selectall);  
  24.         mLl = (LinearLayout) findViewById(R.id.ll);  
  25.         LinearLayoutManager ll=new LinearLayoutManager(this);  
  26.         mRv.setLayoutManager(ll);  
  27.         //全选  
  28.          mSelectall.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {  
  29.              @Override  
  30.              public void onCheckedChanged(CompoundButton compoundButton, boolean b) {  
  31.                  if (b){  
  32.                      mRv.setAdapter(new MyAdapter(MainActivity.this,listBeen,true,true));  
  33.                  }else {  
  34.                      mRv.setAdapter(new MyAdapter(MainActivity.this,listBeen,true,false));  
  35.                  }  
  36.              }  
  37.          });  
  38.         mBianji.setOnClickListener(new View.OnClickListener() {  
  39.             @Override  
  40.             public void onClick(View view) {  
  41.                 if (isShow){  
  42.                     mBianji.setText("完成");  
  43.                     mLl.setVisibility(View.VISIBLE);  
  44.                 mRv.setAdapter(new MyAdapter(MainActivity.this,listBeen,isShow,false));  
  45.                     isShow=false;  
  46.                 }else {  
  47.                     mBianji.setText("编辑");  
  48.                    mBianji.setVisibility(View.GONE);  
  49.                     mRv.setAdapter(new MyAdapter(MainActivity.this,listBeen,isShow,false));  
  50.                     isShow=true;  
  51.                 }  
  52.             }  
  53.         });  
  54.     }  
  55.     @Override  
  56.     public void setData(List<Beans.SongListBean> list) {  
  57.              listBeen=list;  
  58.         Log.i("===+",""+list.get(0).getTitle());  
  59.         MyAdapter adapter=new  MyAdapter(MainActivity.this,listBeen,false,false);  
  60.         mRv.setAdapter(adapter);  
  61.   
  62.     }  
  63. }  

  Iview
[html]  view plain  copy
  1. public interface Iview {  
  2.   void setData(List<Beans.SongListBean> list);  
  3. }  
  IModel
[html]  view plain  copy
  1. public interface IModel {  
  2.     void retro(Callback callback);  
  3.     interface Callback{  
  4.         void complate(List<Beans.SongListBean> list);  
  5.     }  
  6. }  
  ShowModel
[html]  view plain  copy
  1. public class ShowModel implements IModel{  
  2.   
  3.     @Override  
  4.     public void retro(final Callback callback) {  
  5.         URLUtils.utils.getObservable().observeOn(AndroidSchedulers.mainThread())  
  6.                 //设置被观察者在子线程  
  7.                 .subscribeOn(Schedulers.io())  
  8.                 //订阅观察者  
  9.                 .subscribe(new Observer<Beans>() {  
  10.                     @Override  
  11.                     public void onCompleted() {  
  12.   
  13.                     }  
  14.   
  15.                     @Override  
  16.                     public void onError(Throwable e) {  
  17.                         Log.i("==error==", "onNext: "+e);  
  18.                     }  
  19.   
  20.                     @Override  
  21.                     public void onNext(Beans beans) {  
  22.   
  23.                         List<Beans.SongListBean> list = beans.getSong_list();  
  24.                         callback.complate(list);  
  25.                         Log.i("====", "onNext: "+list);  
  26.   
  27.                     }  
  28.                 });  
  29.     }  
  30. }  

Presenters

[html]  view plain  copy
  1. public class Presenters {  
  2.     Context context;  
  3.     IModel model;  
  4.     Iview view;  
  5.   
  6.     public Presenters(Context context, Iview view) {  
  7.         this.context = context;  
  8.         this.view = view;  
  9.         model=new ShowModel();  
  10.     }  
  11.   
  12.     public void getData(){  
  13.         model.retro(new IModel.Callback() {  
  14.             @Override  
  15.             public void complate(List<Beans.SongListBean> list) {  
  16.                 view.setData(list);  
  17.             }  
  18.         });  
  19.     }  
  20. }  

URLUtils

[html]  view plain  copy
  1. public interface URLUtils {  
  2.      @GET("v1/restserver/ting?method=baidu.ting.billboard.billList&type=1&size=10&offset=0")  
  3.     Observable<Beans> getObservable();  
  4.   
  5.     OkHttpClient okHttpClient=new OkHttpClient.Builder()  
  6.             .addInterceptor(new LoggingInterceptor())  
  7.             .build();  
  8.     //使用Retrofit进行设置  
  9.     Retrofit retrofit=new Retrofit.Builder()  
  10.             //添加OkHttpClient  
  11.             .client(okHttpClient)  
  12.             //添加接口头部  
  13.             .baseUrl("http://tingapi.ting.baidu.com/")  
  14.             //添加支持RxJAva  
  15.             .addCallAdapterFactory(RxJavaCallAdapterFactory.create())  
  16.             //设置解析方式  
  17.             .addConverterFactory(GsonConverterFactory.create())  
  18.             .build();  
  19.        //获得描述网络接口的实例  
  20.       URLUtils utils = retrofit.create(URLUtils.class);  
  21. }  

 LoggingInterceptor

[html]  view plain  copy
  1. /**  
  2.  * 网络拦截器  
  3.  */  
  4.   
  5. public class LoggingInterceptor implements Interceptor {  
  6.     private static final String UA = "User-Agent";  
  7.   
  8.     @Override  
  9.     public Response intercept(Chain chain) throws IOException {  
  10.         Request request = chain.request()  
  11.                 .newBuilder()  
  12.                 .addHeader(UA, makeUA())  
  13.                 .build();  
  14.         return chain.proceed(request);  
  15.     }  
  16.   
  17.     private String makeUA() {  
  18.         String s = Build.BRAND + "/" + Build.MODEL + "/" + Build.VERSION.RELEASE;  
  19.         return Build.BRAND + "/" + Build.MODEL + "/" + Build.VERSION.RELEASE;  
  20.     }  
  21.   
  22. }  

MyAdapter 适配器
[html]  view plain  copy
  1. public class MyAdapter extends RecyclerView.Adapter<MyAdapter.MyViewHolder> {  
  2.       Context context;  
  3.      List<Beans.SongListBean> list;  
  4.     private boolean isShow = false;  
  5.     private boolean isSelect = false;  
  6.     public MyAdapter(Context context, List<Beans.SongListBean> list,boolean isShow,boolean isSelect) {  
  7.         this.context = context;  
  8.         this.list = list;  
  9.         this.isShow = isShow;  
  10.         this.isSelect = isSelect;  
  11.     }  
  12.   
  13.     @Override  
  14.     public MyAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {  
  15.         return new MyViewHolder(View.inflate(context, R.layout.item,null));  
  16.     }  
  17.     @Override  
  18.     public void onBindViewHolder(MyAdapter.MyViewHolder holder, int position) {  
  19.        if (isShow) {  
  20.             holder.checkBox.setVisibility(View.VISIBLE);  
  21.            holder.checkBox.setChecked(isSelect);  
  22.         } else {  
  23.            holder.checkBox.setVisibility(View.GONE);  
  24.        }  
  25.        holder.author.setText(list.get(position).getTitle());  
  26.         holder.ting_uid1.setText(list.get(position).getArtist_name());  
  27.        DraweeController dcFresco.newDraweeControllerBuilder()  
  28.                .setUri(list.get(position).getPic_big())  
  29.                .setAutoPlayAnimations(true)  
  30.                .build();  
  31.         holder.imageView.setController(dc);  
  32.     }  
  33.     @Override  
  34.     public int getItemCount() {  
  35.         return list.size();  
  36.   
  37.     }  
  38.   
  39.     class MyViewHolder extends RecyclerView.ViewHolder{  
  40.         TextView author,ting_uid1,ting_uid2,ting_uid3;  
  41.        SimpleDraweeView imageView;  
  42.         CheckBox checkBox;  
  43.         public MyViewHolder(View itemView) {  
  44.             super(itemView);  
  45.             authoritemView.findViewById(R.id.author);  
  46.             ting_uid1itemView.findViewById(R.id.ting_uid1);  
  47.             ting_uid2itemView.findViewById(R.id.ting_uid2);  
  48.             ting_uid3=  itemView.findViewById(R.id.ting_uid3);  
  49.             imageViewitemView.findViewById(R.id.imageView);  
  50.             checkBoxitemView.findViewById(R.id.checkBox);  
  51.         }  
  52.     }  
  53. }  

activity——main布局

[html]  view plain  copy
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <LinearLayout  
  3.     android:orientation="vertical"  
  4.     xmlns:android="http://schemas.android.com/apk/res/android"  
  5.     xmlns:app="http://schemas.android.com/apk/res-auto"  
  6.     xmlns:tools="http://schemas.android.com/tools"  
  7.     android:layout_width="match_parent"  
  8.     android:layout_height="match_parent"  
  9.      >  
  10.   
  11.     <LinearLayout  
  12.         android:background="#099FDE"  
  13.         android:orientation="horizontal"  
  14.         android:layout_width="match_parent"  
  15.         android:layout_height="wrap_content">  
  16.         <Button  
  17.             android:onClick="back"  
  18.             android:text="返回"  
  19.             android:textColor="#fff"  
  20.             android:layout_width="wrap_content"  
  21.             android:layout_height="wrap_content" />  
  22.         <TextView  
  23.             android:textColor="#fff"  
  24.             android:gravity="center_horizontal"  
  25.             android:text="我的收藏"  
  26.             android:layout_width="0dp"  
  27.             android:layout_weight="1"  
  28.             android:layout_height="wrap_content" />  
  29.         <TextView  
  30.             android:id="@+id/bianji"  
  31.             android:textColor="#fff"  
  32.             android:gravity="center_horizontal"  
  33.             android:text="编辑"  
  34.             android:layout_width="60dp"  
  35.             android:layout_height="wrap_content" />  
  36.     </LinearLayout>  
  37.   
  38.     <LinearLayout  
  39.         android:orientation="horizontal"  
  40.         android:layout_width="match_parent"  
  41.         android:layout_height="30dp">  
  42.         <TextView  
  43.             android:layout_gravity="center"  
  44.             android:gravity="center"  
  45.             android:textColor="#099FDE"  
  46.             android:text="商品"  
  47.             android:layout_width="0dp"  
  48.             android:layout_weight="1"  
  49.             android:layout_height="wrap_content" />  
  50.         <TextView  
  51.             android:gravity="center"  
  52.             android:layout_gravity="center"  
  53.             android:text="路线/旅游攻略"  
  54.             android:layout_width="0dp"  
  55.             android:layout_weight="1"  
  56.             android:layout_height="wrap_content" />  
  57.     </LinearLayout>  
  58.   
  59.     <android.support.v7.widget.RecyclerView  
  60.         android:id="@+id/rv"  
  61.         android:layout_width="match_parent"  
  62.         android:layout_height="0dp"  
  63.         android:layout_weight="1">  
  64.     </android.support.v7.widget.RecyclerView>  
  65.     <LinearLayout  
  66.         android:id="@+id/ll"  
  67.         android:visibility="gone"  
  68.         android:orientation="horizontal"  
  69.         android:layout_width="match_parent"  
  70.         android:layout_height="30dp">  
  71.         <CheckBox  
  72.             android:id="@+id/selectall"  
  73.             android:text="全选"  
  74.             android:layout_width="0dp"  
  75.             android:layout_weight="1"  
  76.             android:layout_height="wrap_content" />  
  77.         <Button  
  78.             android:background="#fff"  
  79.             android:onClick="delete"  
  80.             android:text="删除"  
  81.             android:layout_width="wrap_content"  
  82.             android:layout_height="wrap_content" />  
  83.     </LinearLayout>  
  84. </LinearLayout>  


item布局

[html]  view plain  copy
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <LinearLayout  
  3.     android:orientation="horizontal"  
  4.     xmlns:fresco="http://schemas.android.com/apk/res-auto"  
  5.     xmlns:android="http://schemas.android.com/apk/res/android"  
  6.     android:layout_width="match_parent"  
  7.     android:layout_height="match_parent">  
  8.     <CheckBox  
  9.         android:visibility="gone"  
  10.         android:id="@+id/checkBox"  
  11.         android:layout_marginTop="30dp"  
  12.         android:layout_width="wrap_content"  
  13.         android:layout_height="wrap_content" />  
  14.     <com.facebook.drawee.view.SimpleDraweeView  
  15.         android:id="@+id/imageView"  
  16.         android:layout_width="100dp"  
  17.         android:layout_height="100dp"  
  18.         android:background="@mipmap/ic_launcher"  
  19.         />  
  20.   
  21.     <LinearLayout  
  22.         android:layout_width="match_parent"  
  23.         android:layout_height="100dp"  
  24.         android:orientation="vertical">  
  25.   
  26.         <TextView  
  27.             android:id="@+id/author"  
  28.             android:layout_width="match_parent"  
  29.             android:layout_height="0dp"  
  30.             android:layout_weight="1"  
  31.             android:text="asdasd" />  
  32.   
  33.         <LinearLayout  
  34.             android:layout_width="match_parent"  
  35.             android:layout_height="60dp"  
  36.             android:orientation="horizontal">  
  37.   
  38.             <TextView  
  39.                 android:id="@+id/ting_uid1"  
  40.                 android:layout_width="wrap_content"  
  41.                 android:layout_height="wrap_content"  
  42.                 android:layout_gravity="center_vertical"  
  43.                 android:text="asdasd"  
  44.                 android:textColor="#f00" />  
  45.   
  46.             <TextView  
  47.                 android:id="@+id/ting_uid2"  
  48.                 android:layout_width="wrap_content"  
  49.                 android:layout_height="wrap_content"  
  50.                 android:layout_gravity="center_vertical"  
  51.                 android:layout_marginLeft="50dp"  
  52.                 android:text="asdasd" />  
  53.   
  54.             <TextView  
  55.                 android:id="@+id/ting_uid3"  
  56.                 android:layout_width="wrap_content"  
  57.                 android:layout_height="wrap_content"  
  58.                 android:layout_gravity="center_vertical"  
  59.                 android:layout_marginLeft="50dp"  
  60.                 android:text="asdasd" />  
  61.         </LinearLayout>  
  62.     </LinearLayout>  
  63. </LinearLayout>  

Bean类

[html]  view plain  copy
  1. /**  
  2.  *   
  3.  * <span style="color:#330033;"><span style="background-color: rgb(204, 204, 204);">http://tingapi.ting.baidu.com/v1/restserver/ting?method=baidu.ting.billboard.billList&type=1&size=10&offset=0</span></span>  
  4.  */  
  5.   
  6. public class Beans {  
  7.   
  8.      
  9.     private BillboardBean billboard;  
  10.     private int error_code;  
  11.     private List<SongListBean> song_list;  
  12.   
  13.     public BillboardBean getBillboard() {  
  14.         return billboard;  
  15.     }  
  16.   
  17.     public void setBillboard(BillboardBean billboard) {  
  18.         this.billboard = billboard;  
  19.     }  
  20.   
  21.     public int getError_code() {  
  22.         return error_code;  
  23.     }  
  24.   
  25.     public void setError_code(int error_code) {  
  26.         this.error_code = error_code;  
  27.     }  
  28.   
  29.     public List<SongListBean> getSong_list() {  
  30.         return song_list;  
  31.     }  
  32.   
  33.     public void setSong_list(List<SongListBean> song_list) {  
  34.         this.song_list = song_list;  
  35.     }  
  36.   
  37.     public static class BillboardBean {  
  38.         /**  
  39.          * billboard_type : 1  
  40.          * billboard_no : 2370  
  41.          * update_date : 2017-11-06  
  42.          * billboard_songnum : 150  
  43.          * havemore : 1  
  44.          * name : 新歌榜  
  45.          * comment : 该榜单是根据百度音乐平台歌曲每日播放量自动生成的数据榜单,统计范围为近期发行的歌曲,每日更新一次  
  46.          * pic_s192 : http://b.hiphotos.baidu.com/ting/pic/item/9922720e0cf3d7caf39ebc10f11fbe096b63a968.jpg  
  47.          * pic_s640 : http://c.hiphotos.baidu.com/ting/pic/item/f7246b600c33874495c4d089530fd9f9d62aa0c6.jpg  
  48.          * pic_s444 : http://d.hiphotos.baidu.com/ting/pic/item/78310a55b319ebc4845c84eb8026cffc1e17169f.jpg  
  49.          * pic_s260 : http://b.hiphotos.baidu.com/ting/pic/item/e850352ac65c1038cb0f3cb0b0119313b07e894b.jpg  
  50.          * pic_s210 : http://business.cdn.qianqian.com/qianqian/pic/bos_client_c49310115801d43d42a98fdc357f6057.jpg  
  51.          * web_url : http://music.baidu.com/top/new  
  52.          */  
  53.   
  54.         private String billboard_type;  
  55.         private String billboard_no;  
  56.         private String update_date;  
  57.         private String billboard_songnum;  
  58.         private int havemore;  
  59.         private String name;  
  60.         private String comment;  
  61.         private String pic_s192;  
  62.         private String pic_s640;  
  63.         private String pic_s444;  
  64.         private String pic_s260;  
  65.         private String pic_s210;  
  66.         private String web_url;  
  67.   
  68.         public String getBillboard_type() {  
  69.             return billboard_type;  
  70.         }  
  71.   
  72.         public void setBillboard_type(String billboard_type) {  
  73.             this.billboard_type = billboard_type;  
  74.         }  
  75.   
  76.         public String getBillboard_no() {  
  77.             return billboard_no;  
  78.         }  
  79.   
  80.         public void setBillboard_no(String billboard_no) {  
  81.             this.billboard_no = billboard_no;  
  82.         }  
  83.   
  84.         public String getUpdate_date() {  
  85.             return update_date;  
  86.         }  
  87.   
  88.         public void setUpdate_date(String update_date) {  
  89.             this.update_date = update_date;  
  90.         }  
  91.   
  92.         public String getBillboard_songnum() {  
  93.             return billboard_songnum;  
  94.         }  
  95.   
  96.         public void setBillboard_songnum(String billboard_songnum) {  
  97.             this.billboard_songnum = billboard_songnum;  
  98.         }  
  99.   
  100.         public int getHavemore() {  
  101.             return havemore;  
  102.         }  
  103.   
  104.         public void setHavemore(int havemore) {  
  105.             this.havemore = havemore;  
  106.         }  
  107.   
  108.         public String getName() {  
  109.             return name;  
  110.         }  
  111.   
  112.         public void setName(String name) {  
  113.             this.name = name;  
  114.         }  
  115.   
  116.         public String getComment() {  
  117.             return comment;  
  118.         }  
  119.   
  120.         public void setComment(String comment) {  
  121.             this.comment = comment;  
  122.         }  
  123.   
  124.         public String getPic_s192() {  
  125.             return pic_s192;  
  126.         }  
  127.   
  128.         public void setPic_s192(String pic_s192) {  
  129.             this.pic_s192 = pic_s192;  
  130.         }  
  131.   
  132.         public String getPic_s640() {  
  133.             return pic_s640;  
  134.         }  
  135.   
  136.         public void setPic_s640(String pic_s640) {  
  137.             this.pic_s640 = pic_s640;  
  138.         }  
  139.   
  140.         public String getPic_s444() {  
  141.             return pic_s444;  
  142.         }  
  143.   
  144.         public void setPic_s444(String pic_s444) {  
  145.             this.pic_s444 = pic_s444;  
  146.         }  
  147.   
  148.         public String getPic_s260() {  
  149.             return pic_s260;  
  150.         }  
  151.   
  152.         public void setPic_s260(String pic_s260) {  
  153.             this.pic_s260 = pic_s260;  
  154.         }  
  155.   
  156.         public String getPic_s210() {  
  157.             return pic_s210;  
  158.         }  
  159.   
  160.         public void setPic_s210(String pic_s210) {  
  161.             this.pic_s210 = pic_s210;  
  162.         }  
  163.   
  164.         public String getWeb_url() {  
  165.             return web_url;  
  166.         }  
  167.   
  168.         public void setWeb_url(String web_url) {  
  169.             this.web_url = web_url;  
  170.         }  
  171.     }  
  172.   
  173.     public static class SongListBean {  
  174.         /**  
  175.          * artist_id : 88  
  176.          * language : 国语  
  177.          * pic_big : http://musicdata.baidu.com/data2/pic/c4334247844b6635b83c4de6f5993dbf/564124806/564124806.JPG@s_1,w_150,h_150  
  178.          * pic_small : http://musicdata.baidu.com/data2/pic/c4334247844b6635b83c4de6f5993dbf/564124806/564124806.JPG@s_1,w_90,h_90  
  179.          * country : 内地  
  180.          * area : 0  
  181.          * publishtime : 2017-10-31  
  182.          * album_no : 0  
  183.          * lrclink : http://musicdata.baidu.com/data2/lrc/4ca11ed349ed0c1e6488ad1bd664812b/565001257/565001257.lrc  
  184.          * copy_type : 1  
  185.          * hot : 252464  
  186.          * all_artist_ting_uid : 2517  
  187.          * resource_type : 0  
  188.          * is_new : 1  
  189.          * rank_change : 0  
  190.          * rank : 1  
  191.          * all_artist_id : 88  
  192.          * style :  
  193.          * del_status : 0  
  194.          * relate_status : 0  
  195.          * toneid : 0  
  196.          * all_rate : 64,128,256,320,flac  
  197.          * file_duration : 216  
  198.          * has_mv_mobile : 0  
  199.          * versions :  
  200.          * bitrate_fee : {"0":"0|0","1":"0|0"}  
  201.          * biaoshi : first,lossless  
  202.          * info :  
  203.          * has_filmtv : 0  
  204.          * si_proxycompany : TAIHE MUSIC GROUP  
  205.          * song_id : 564102115  
  206.          * title : 别  
  207.          * ting_uid : 2517  
  208.          * author : 薛之谦  
  209.          * album_id : 564102092  
  210.          * album_title : 别  
  211.          * is_first_publish : 0  
  212.          * havehigh : 2  
  213.          * charge : 0  
  214.          * has_mv : 0  
  215.          * learn : 0  
  216.          * song_source : web  
  217.          * piao_id : 0  
  218.          * korean_bb_song : 0  
  219.          * resource_type_ext : 0  
  220.          * mv_provider : 0000000000  
  221.          * artist_name : 薛之谦  
  222.          * pic_radio : http://musicdata.baidu.com/data2/pic/c4334247844b6635b83c4de6f5993dbf/564124806/564124806.JPG@s_1,w_300,h_300  
  223.          * pic_s500 : http://musicdata.baidu.com/data2/pic/c4334247844b6635b83c4de6f5993dbf/564124806/564124806.JPG@s_1,w_500,h_500  
  224.          * pic_premium : http://musicdata.baidu.com/data2/pic/c4334247844b6635b83c4de6f5993dbf/564124806/564124806.JPG@s_1,w_500,h_500  
  225.          * pic_huge : http://musicdata.baidu.com/data2/pic/c4334247844b6635b83c4de6f5993dbf/564124806/564124806.JPG  
  226.          * album_500_500 : http://musicdata.baidu.com/data2/pic/c4334247844b6635b83c4de6f5993dbf/564124806/564124806.JPG@s_1,w_500,h_500  
  227.          * album_800_800 :  
  228.          * album_1000_1000 : http://musicdata.baidu.com/data2/pic/c4334247844b6635b83c4de6f5993dbf/564124806/564124806.JPG  
  229.          */  
  230.   
  231.         private String artist_id;  
  232.         private String language;  
  233.         private String pic_big;  
  234.         private String pic_small;  
  235.         private String country;  
  236.         private String area;  
  237.         private String publishtime;  
  238.         private String album_no;  
  239.         private String lrclink;  
  240.         private String copy_type;  
  241.         private String hot;  
  242.         private String all_artist_ting_uid;  
  243.         private String resource_type;  
  244.         private String is_new;  
  245.         private String rank_change;  
  246.         private String rank;  
  247.         private String all_artist_id;  
  248.         private String style;  
  249.         private String del_status;  
  250.         private String relate_status;  
  251.         private String toneid;  
  252.         private String all_rate;  
  253.         private int file_duration;  
  254.         private int has_mv_mobile;  
  255.         private String versions;  
  256.         private String bitrate_fee;  
  257.         private String biaoshi;  
  258.         private String info;  
  259.         private String has_filmtv;  
  260.         private String si_proxycompany;  
  261.         private String song_id;  
  262.         private String title;  
  263.         private String ting_uid;  
  264.         private String author;  
  265.         private String album_id;  
  266.         private String album_title;  
  267.         private int is_first_publish;  
  268.         private int havehigh;  
  269.         private int charge;  
  270.         private int has_mv;  
  271.         private int learn;  
  272.         private String song_source;  
  273.         private String piao_id;  
  274.         private String korean_bb_song;  
  275.         private String resource_type_ext;  
  276.         private String mv_provider;  
  277.         private String artist_name;  
  278.         private String pic_radio;  
  279.         private String pic_s500;  
  280.         private String pic_premium;  
  281.         private String pic_huge;  
  282.         private String album_500_500;  
  283.         private String album_800_800;  
  284.         private String album_1000_1000;  
  285.   
  286.         public String getArtist_id() {  
  287.             return artist_id;  
  288.         }  
  289.   
  290.         public void setArtist_id(String artist_id) {  
  291.             this.artist_id = artist_id;  
  292.         }  
  293.   
  294.         public String getLanguage() {  
  295.             return language;  
  296.         }  
  297.   
  298.         public void setLanguage(String language) {  
  299.             this.language = language;  
  300.         }  
  301.   
  302.         public String getPic_big() {  
  303.             return pic_big;  
  304.         }  
  305.   
  306.         public void setPic_big(String pic_big) {  
  307.             this.pic_big = pic_big;  
  308.         }  
  309.   
  310.         public String getPic_small() {  
  311.             return pic_small;  
  312.         }  
  313.   
  314.         public void setPic_small(String pic_small) {  
  315.             this.pic_small = pic_small;  
  316.         }  
  317.   
  318.         public String getCountry() {  
  319.             return country;  
  320.         }  
  321.   
  322.         public void setCountry(String country) {  
  323.             this.country = country;  
  324.         }  
  325.   
  326.         public String getArea() {  
  327.             return area;  
  328.         }  
  329.   
  330.         public void setArea(String area) {  
  331.             this.area = area;  
  332.         }  
  333.   
  334.         public String getPublishtime() {  
  335.             return publishtime;  
  336.         }  
  337.   
  338.         public void setPublishtime(String publishtime) {  
  339.             this.publishtime = publishtime;  
  340.         }  
  341.   
  342.         public String getAlbum_no() {  
  343.             return album_no;  
  344.         }  
  345.   
  346.         public void setAlbum_no(String album_no) {  
  347.             this.album_no = album_no;  
  348.         }  
  349.   
  350.         public String getLrclink() {  
  351.             return lrclink;  
  352.         }  
  353.   
  354.         public void setLrclink(String lrclink) {  
  355.             this.lrclink = lrclink;  
  356.         }  
  357.   
  358.         public String getCopy_type() {  
  359.             return copy_type;  
  360.         }  
  361.   
  362.         public void setCopy_type(String copy_type) {  
  363.             this.copy_type = copy_type;  
  364.         }  
  365.   
  366.         public String getHot() {  
  367.             return hot;  
  368.         }  
  369.   
  370.         public void setHot(String hot) {  
  371.             this.hot = hot;  
  372.         }  
  373.   
  374.         public String getAll_artist_ting_uid() {  
  375.             return all_artist_ting_uid;  
  376.         }  
  377.   
  378.         public void setAll_artist_ting_uid(String all_artist_ting_uid) {  
  379.             this.all_artist_ting_uid = all_artist_ting_uid;  
  380.         }  
  381.   
  382.         public String getResource_type() {  
  383.             return resource_type;  
  384.         }  
  385.   
  386.         public void setResource_type(String resource_type) {  
  387.             this.resource_type = resource_type;  
  388.         }  
  389.   
  390.         public String getIs_new() {  
  391.             return is_new;  
  392.         }  
  393.   
  394.         public void setIs_new(String is_new) {  
  395.             this.is_new = is_new;  
  396.         }  
  397.   
  398.         public String getRank_change() {  
  399.             return rank_change;  
  400.         }  
  401.   
  402.         public void setRank_change(String rank_change) {  
  403.             this.rank_change = rank_change;  
  404.         }  
  405.   
  406.         public String getRank() {  
  407.             return rank;  
  408.         }  
  409.   
  410.         public void setRank(String rank) {  
  411.             this.rank = rank;  
  412.         }  
  413.   
  414.         public String getAll_artist_id() {  
  415.             return all_artist_id;  
  416.         }  
  417.   
  418.         public void setAll_artist_id(String all_artist_id) {  
  419.             this.all_artist_id = all_artist_id;  
  420.         }  
  421.   
  422.         public String getStyle() {  
  423.             return style;  
  424.         }  
  425.   
  426.         public void setStyle(String style) {  
  427.             this.style = style;  
  428.         }  
  429.   
  430.         public String getDel_status() {  
  431.             return del_status;  
  432.         }  
  433.   
  434.         public void setDel_status(String del_status) {  
  435.             this.del_status = del_status;  
  436.         }  
  437.   
  438.         public String getRelate_status() {  
  439.             return relate_status;  
  440.         }  
  441.   
  442.         public void setRelate_status(String relate_status) {  
  443.             this.relate_status = relate_status;  
  444.         }  
  445.   
  446.         public String getToneid() {  
  447.             return toneid;  
  448.         }  
  449.   
  450.         public void setToneid(String toneid) {  
  451.             this.toneid = toneid;  
  452.         }  
  453.   
  454.         public String getAll_rate() {  
  455.             return all_rate;  
  456.         }  
  457.   
  458.         public void setAll_rate(String all_rate) {  
  459.             this.all_rate = all_rate;  
  460.         }  
  461.   
  462.         public int getFile_duration() {  
  463.             return file_duration;  
  464.         }  
  465.   
  466.         public void setFile_duration(int file_duration) {  
  467.             this.file_duration = file_duration;  
  468.         }  
  469.   
  470.         public int getHas_mv_mobile() {  
  471.             return has_mv_mobile;  
  472.         }  
  473.   
  474.         public void setHas_mv_mobile(int has_mv_mobile) {  
  475.             this.has_mv_mobile = has_mv_mobile;  
  476.         }  
  477.   
  478.         public String getVersions() {  
  479.             return versions;  
  480.         }  
  481.   
  482.         public void setVersions(String versions) {  
  483.             this.versions = versions;  
  484.         }  
  485.   
  486.         public String getBitrate_fee() {  
  487.             return bitrate_fee;  
  488.         }  
  489.   
  490.         public void setBitrate_fee(String bitrate_fee) {  
  491.             this.bitrate_fee = bitrate_fee;  
  492.         }  
  493.   
  494.         public String getBiaoshi() {  
  495.             return biaoshi;  
  496.         }  
  497.   
  498.         public void setBiaoshi(String biaoshi) {  
  499.             this.biaoshi = biaoshi;  
  500.         }  
  501.   
  502.         public String getInfo() {  
  503.             return info;  
  504.         }  
  505.   
  506.         public void setInfo(String info) {  
  507.             this.info = info;  
  508.         }  
  509.   
  510.         public String getHas_filmtv() {  
  511.             return has_filmtv;  
  512.         }  
  513.   
  514.         public void setHas_filmtv(String has_filmtv) {  
  515.             this.has_filmtv = has_filmtv;  
  516.         }  
  517.   
  518.         public String getSi_proxycompany() {  
  519.             return si_proxycompany;  
  520.         }  
  521.   
  522.         public void setSi_proxycompany(String si_proxycompany) {  
  523.             this.si_proxycompany = si_proxycompany;  
  524.         }  
  525.   
  526.         public String getSong_id() {  
  527.             return song_id;  
  528.         }  
  529.   
  530.         public void setSong_id(String song_id) {  
  531.             this.song_id = song_id;  
  532.         }  
  533.   
  534.         public String getTitle() {  
  535.             return title;  
  536.         }  
  537.   
  538.         public void setTitle(String title) {  
  539.             this.title = title;  
  540.         }  
  541.   
  542.         public String getTing_uid() {  
  543.             return ting_uid;  
  544.         }  
  545.   
  546.         public void setTing_uid(String ting_uid) {  
  547.             this.ting_uid = ting_uid;  
  548.         }  
  549.   
  550.         public String getAuthor() {  
  551.             return author;  
  552.         }  
  553.   
  554.         public void setAuthor(String author) {  
  555.             this.author = author;  
  556.         }  
  557.   
  558.         public String getAlbum_id() {  
  559.             return album_id;  
  560.         }  
  561.   
  562.         public void setAlbum_id(String album_id) {  
  563.             this.album_id = album_id;  
  564.         }  
  565.   
  566.         public String getAlbum_title() {  
  567.             return album_title;  
  568.         }  
  569.   
  570.         public void setAlbum_title(String album_title) {  
  571.             this.album_title = album_title;  
  572.         }  
  573.   
  574.         public int getIs_first_publish() {  
  575.             return is_first_publish;  
  576.         }  
  577.   
  578.         public void setIs_first_publish(int is_first_publish) {  
  579.             this.is_first_publish = is_first_publish;  
  580.         }  
  581.   
  582.         public int getHavehigh() {  
  583.             return havehigh;  
  584.         }  
  585.   
  586.         public void setHavehigh(int havehigh) {  
  587.             this.havehigh = havehigh;  
  588.         }  
  589.   
  590.         public int getCharge() {  
  591.             return charge;  
  592.         }  
  593.   
  594.         public void setCharge(int charge) {  
  595.             this.charge = charge;  
  596.         }  
  597.   
  598.         public int getHas_mv() {  
  599.             return has_mv;  
  600.         }  
  601.   
  602.         public void setHas_mv(int has_mv) {  
  603.             this.has_mv = has_mv;  
  604.         }  
  605.   
  606.         public int getLearn() {  
  607.             return learn;  
  608.         }  
  609.   
  610.         public void setLearn(int learn) {  
  611.             this.learn = learn;  
  612.         }  
  613.   
  614.         public String getSong_source() {  
  615.             return song_source;  
  616.         }  
  617.   
  618.         public void setSong_source(String song_source) {  
  619.             this.song_source = song_source;  
  620.         }  
  621.   
  622.         public String getPiao_id() {  
  623.             return piao_id;  
  624.         }  
  625.   
  626.         public void setPiao_id(String piao_id) {  
  627.             this.piao_id = piao_id;  
  628.         }  
  629.   
  630.         public String getKorean_bb_song() {  
  631.             return korean_bb_song;  
  632.         }  
  633.   
  634.         public void setKorean_bb_song(String korean_bb_song) {  
  635.             this.korean_bb_song = korean_bb_song;  
  636.         }  
  637.   
  638.         public String getResource_type_ext() {  
  639.             return resource_type_ext;  
  640.         }  
  641.   
  642.         public void setResource_type_ext(String resource_type_ext) {  
  643.             this.resource_type_ext = resource_type_ext;  
  644.         }  
  645.   
  646.         public String getMv_provider() {  
  647.             return mv_provider;  
  648.         }  
  649.   
  650.         public void setMv_provider(String mv_provider) {  
  651.             this.mv_provider = mv_provider;  
  652.         }  
  653.   
  654.         public String getArtist_name() {  
  655.             return artist_name;  
  656.         }  
  657.   
  658.         public void setArtist_name(String artist_name) {  
  659.             this.artist_name = artist_name;  
  660.         }  
  661.   
  662.         public String getPic_radio() {  
  663.             return pic_radio;  
  664.         }  
  665.   
  666.         public void setPic_radio(String pic_radio) {  
  667.             this.pic_radio = pic_radio;  
  668.         }  
  669.   
  670.         public String getPic_s500() {  
  671.             return pic_s500;  
  672.         }  
  673.   
  674.         public void setPic_s500(String pic_s500) {  
  675.             this.pic_s500 = pic_s500;  
  676.         }  
  677.   
  678.         public String getPic_premium() {  
  679.             return pic_premium;  
  680.         }  
  681.   
  682.         public void setPic_premium(String pic_premium) {  
  683.             this.pic_premium = pic_premium;  
  684.         }  
  685.   
  686.         public String getPic_huge() {  
  687.             return pic_huge;  
  688.         }  
  689.   
  690.         public void setPic_huge(String pic_huge) {  
  691.             this.pic_huge = pic_huge;  
  692.         }  
  693.   
  694.         public String getAlbum_500_500() {  
  695.             return album_500_500;  
  696.         }  
  697.   
  698.         public void setAlbum_500_500(String album_500_500) {  
  699.             this.album_500_500 = album_500_500;  
  700.         }  
  701.   
  702.         public String getAlbum_800_800() {  
  703.             return album_800_800;  
  704.         }  
  705.   
  706.         public void setAlbum_800_800(String album_800_800) {  
  707.             this.album_800_800 = album_800_800;  
  708.         }  
  709.   
  710.         public String getAlbum_1000_1000() {  
  711.             return album_1000_1000;  
  712.         }  
  713.   
  714.         public void setAlbum_1000_1000(String album_1000_1000) {  
  715.             this.album_1000_1000 = album_1000_1000;  
  716.         }  
  717.     }  
  718. }  
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值