content: package com.music.player.bhandari.m.qlyrics.LyricsAndArtistInfo.ArtistInfo;
  
  import android.os.Parcel;
  import android.os.Parcelable;
  
  import java.io.Serializable;
  
  /**
   * Copyright 2017 Amit Bhandari AB
   * <p>
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * <p>
   * http://www.apache.org/licenses/LICENSE-2.0
   * <p>
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  public class ArtistInfo implements Serializable, Parcelable {
  
      private String originalArtist = "";
      private String mArtist = "";
      private String artistContent = "";
      private String imageUrl = "";
      private String artistUrl = "";
      private int flag = NEGATIVE;
      public static int POSITIVE = 0;
      public static int NEGATIVE = 1;
  
      public ArtistInfo(String artist) {
          originalArtist = artist;
      }
  
      private ArtistInfo(Parcel in) {
          originalArtist = in.readString();
          mArtist = in.readString();
          artistContent = in.readString();
          imageUrl = in.readString();
          artistUrl = in.readString();
          flag = in.readInt();
      }
  
      @Override
      public void writeToParcel(Parcel dest, int flags) {
          dest.writeString(originalArtist);
          dest.writeString(mArtist);
          dest.writeString(artistContent);
          dest.writeString(imageUrl);
          dest.writeString(artistUrl);
          dest.writeInt(flag);
      }
  
      public static final Creator<ArtistInfo> CREATOR = new Creator<ArtistInfo>() {
          @Override
          public ArtistInfo createFromParcel(Parcel in) {
              return new ArtistInfo(in);
          }
  
          @Override
          public ArtistInfo[] newArray(int size) {
              return new ArtistInfo[size];
          }
      };
  
      public String getImageUrl() {
          return imageUrl;
      }
  
      public void setImageUrl(String imageUrl) {
          this.imageUrl = imageUrl;
      }
  
      @Override
      public int describeContents() {
          return 0;
      }
  
      public int getFlag() {
          return flag;
      }
  
      public void setFlag(int flag) {
          this.flag = flag;
      }
  
      public String getArtistUrl() {
          return artistUrl;
      }
  
      public void setArtistUrl(String artistUrl) {
          this.artistUrl = artistUrl;
      }
  
      public interface Callback {
          void onArtInfoDownloaded(ArtistInfo artistInfo);
      }
  
  
      public void setOriginalArtist(String artist) {
          originalArtist = artist;
      }
  
      public String getOriginalArtist() {
          return originalArtist;
      }
  
      public void setCorrectedArtist(String artist) {
          this.mArtist = artist;
      }
  
      public String getCorrectedArtist() {
          return mArtist;
      }
  
      public void setArtistContent(String artistContent) {
          this.artistContent = artistContent;
      }
  
      public String getArtistContent() {
          return artistContent;
      }
  }
  