Add the acknowledged data field to WaitingOnMe

pull/14/head
Sam Bosley 11 years ago
parent 8585ea88d9
commit 82122ddbf3

@ -5,6 +5,7 @@ import android.net.Uri;
import com.todoroo.andlib.data.AbstractModel;
import com.todoroo.andlib.data.Property;
import com.todoroo.andlib.data.Property.IntegerProperty;
import com.todoroo.andlib.data.Property.LongProperty;
import com.todoroo.andlib.data.Property.StringProperty;
import com.todoroo.andlib.data.Table;
@ -50,6 +51,9 @@ public class WaitingOnMe extends RemoteModel {
public static final LongProperty READ_AT = new LongProperty(
TABLE, "read_at", Property.PROP_FLAG_DATE);
public static final IntegerProperty ACKNOWLEDGED = new IntegerProperty(
TABLE, "acknowledged", Property.PROP_FLAG_BOOLEAN);
public static final LongProperty PUSHED_AT = new LongProperty(
TABLE, PUSHED_AT_PROPERTY_NAME, Property.PROP_FLAG_DATE);

@ -356,6 +356,7 @@ public class NameMaps {
putWaitingOnMePropertyToServerName(WaitingOnMe.CREATED_AT, "created_at", false);
putWaitingOnMePropertyToServerName(WaitingOnMe.DELETED_AT, "deleted_at", true);
putWaitingOnMePropertyToServerName(WaitingOnMe.READ_AT, "read_at", true);
putWaitingOnMePropertyToServerName(WaitingOnMe.ACKNOWLEDGED, "acknowledged", true);
// Reverse the mapping to construct the server to local map
WAITING_ON_ME_PROPERTIES_SERVER_TO_LOCAL = AndroidUtilities.reverseMap(WAITING_ON_ME_PROPERTIES_LOCAL_TO_SERVER);

Loading…
Cancel
Save