Created
February 9, 2016 10:20
-
-
Save kendepelchin/45a485ed369f66a06eb0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
package com.tapcrowd.engagor.util.object; | |
import android.database.Cursor; | |
public class Tracking { | |
private String identifier; | |
private String apiKey; | |
private String accountId; | |
private String enabled; | |
public Tracking(Cursor c) { | |
if(c.moveToFirst()) { | |
identifier = c.getString(c.getColumnIndex("identifier")); | |
apiKey = c.getString(c.getColumnIndex("api_key")); | |
accountId = c.getString(c.getColumnIndex("accountId")); | |
enabled = c.getString(c.getColumnIndex("enabled")); | |
} | |
} | |
public String getIdentifier() { | |
return identifier; | |
} | |
public String getApiKey() { | |
return apiKey; | |
} | |
public String getAccountId() { | |
return accountId; | |
} | |
public boolean isEnabled() { | |
return enabled.equals("true"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment