Android Open Source - Schwarzmarkt Card






From Project

Back to project page Schwarzmarkt.

License

The source code is released under:

GNU General Public License

If you think the Android project Schwarzmarkt listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package de.isibboi.schwarzmarkt;
//from w  ww  . j a v a  2 s  .  c  o m
import android.os.Parcel;
import android.os.Parcelable;

public class Card implements Parcelable {
  public static final Parcelable.Creator<Card> CREATOR = new Parcelable.Creator<Card>() {
    @Override
    public Card createFromParcel(Parcel source) {
      return new Card(source.readString(), source.readString());
    }

    @Override
    public Card[] newArray(int size) {
      return new Card[size];
    }
  };
  
  private final String name;
  private final String description;
  
  public Card(String name, String description) {
    this.name = name;
    this.description = description;
  }

  public String getName() {
    return name;
  }

  public String getDescription() {
    return description;
  }

  @Override
  public int describeContents() {
    return 0;
  }

  @Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(name);
    dest.writeString(description);
  }
}




Java Source Code List

de.isibboi.schwarzmarkt.Card.java
de.isibboi.schwarzmarkt.ChooseCardsActivity.java
de.isibboi.schwarzmarkt.ChooseEditionsActivity.java
de.isibboi.schwarzmarkt.Edition.java