Created
July 23, 2017 16:41
-
-
Save chyrta/bfac63911061c8e15964097c45ea0437 to your computer and use it in GitHub Desktop.
TokenEntityNew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.arch.persistence.room.ColumnInfo; | |
import android.arch.persistence.room.Entity; | |
import android.arch.persistence.room.PrimaryKey; | |
@Entity(tableName = "token") | |
public class TokenEntity { | |
@PrimaryKey(autoGenerate = true) | |
public int id; | |
@ColumnInfo(name = "apiToken") | |
public String apiToken; | |
public TokenEntity(String token) { | |
this.apiToken = apiToken; | |
} | |
public String getToken() { | |
return token; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment