/** * params constructor without id */ @Ignore public Location(@Nonnull String location_name, @Nonnull String location_address, double location_lat, double location_lng, @Nonnull String location_background, @Nonnull String location_note, boolean location_is_address_updated, boolean location_is_latlng_updated) { this(Constant.INT_NONE_VALUE, location_name, location_address, location_lat, location_lng, location_background, location_note, location_is_address_updated, location_is_latlng_updated); }
@Ignore protected ClaimItem(final Parcel in) { id = in.readLong(); description = in.readString(); amount = in.readDouble(); final long time = in.readLong(); timestamp = time != -1 ? new Date(time) : null; final int categoryOrd = in.readInt(); category = categoryOrd != -1 ? Category.values()[categoryOrd] : null; in.readTypedList(attachments, Attachment.CREATOR); }
@Ignore public Recipe(int id, String name, ArrayList<Ingredient> ingredients, ArrayList<Step> steps, int servings, String image){ this.id = id; this.name = name; this.ingredients = ingredients; this.steps = steps; this.servings = servings; this.image = image; }
@Ignore public User(String userName) { // DO NOT USE Integer Random values for primary keys. // This is using an Integer to showcase a WRONG implementation that has to be fixed // afterwards by updating the schema. // The ID is updated to a UUID String in the room3 flavor. mId = new Random(Integer.MAX_VALUE).nextInt(); mUserName = userName; }
@Ignore public User(String userName) { // DO NOT USE Integer Random values for primary keys. // This is using an Integer to showcase a WRONG implementation that has to be fixed // afterwards by updating the schema. // The ID is updated to a UUID String in the room3 flavor. mId = new Random(Integer.MAX_VALUE).nextInt(); mUserName = userName; mDate = new Date(System.currentTimeMillis()); }
@Ignore public Project(String title, String desc, int priority, Date dead_line){ this.title = title; this.desc = desc; this.progress = 0; this.cost = 0; this.priority = priority; this.create_time = new Date(); this.dead_line = dead_line; }
@Ignore public Comment(long photoId, String commentText) { this.photoId = photoId; this.commentText = commentText; this.timestamp = System.currentTimeMillis(); this.syncPending = true; }
@Ignore public Message(Long userId, Long threadId) { this.creDate = new Date(); this.status = EnumMessageStatus.RECEIVED; this.userId = userId; this.threadId = threadId; }
@Ignore public Person(long deadline, int goal, int currentFloor) { id = 0; this.birth = System.currentTimeMillis(); this.deadline = deadline; this.goal = goal; setCurrentFloor(currentFloor); setCurrentState(State.LOBBY); gone = false; style = randomStyle(); dirty = false; }
@Ignore public FavoriteLocation(long uid, NetworkId networkId, WrapLocation l) { super(uid, networkId, l); this.fromCount = 0; this.viaCount = 0; this.toCount = 0; }
@Ignore public FavoriteLocation(NetworkId networkId, WrapLocation l) { super(networkId, l); this.fromCount = 0; this.viaCount = 0; this.toCount = 0; }
@Ignore public FavoriteLocation(NetworkId networkId, Location l) { super(networkId, l); this.fromCount = 0; this.viaCount = 0; this.toCount = 0; }
@Ignore StoredSearch(@NonNull NetworkId networkId, FavoriteLocation from, @Nullable FavoriteLocation via, FavoriteLocation to) { this.networkId = networkId; this.fromId = from.getUid(); if (via != null) this.viaId = via.getUid(); this.toId = to.getUid(); this.count = 1; this.lastUsed = new Date(); this.favorite = false; }
@Ignore public ChatMessage(int id, String text, ChatMember member, String timestamp, int previous) { super(); this.id = id; this.text = text; this.member = member; this.timestamp = timestamp; this.sendingStatus = STATUS_SENT; this.previous = previous; }
@Ignore public Moment(long rideId, Date date) { this.rideId = rideId; this.date = date; }
/** * Quick constructor with name */ @Ignore public Location(@Nonnull String location_name) { this(location_name, Constant.STRING_EMPTY, Double.MAX_VALUE, Double.MAX_VALUE, Constant.STRING_EMPTY, Constant.STRING_EMPTY, true, true); }
@Ignore public UploadItem() { }
@Ignore public Attachment(final File file, final Type type) { this.file = file; this.type = Type.safe(type); }
@Ignore public User(String userName) { mId = UUID.randomUUID().toString(); mUserName = userName; mDate = new Date(System.currentTimeMillis()); }
@Ignore public User(String userName) { mId = UUID.randomUUID().toString(); mUserName = userName; }
@Ignore public Tag(String id, String name) { this.id = id; this.name = name; }
@Ignore public Task(String id, String name) { this.id = id; this.name = name; }
@Ignore public Contact(String name) { this(UUID.randomUUID().toString(), name); }
@Ignore public ContactNumber(@NonNull String number, @NonNull String contactId) { this(UUID.randomUUID().toString(), number, contactId); }
@Ignore public Nutrient(String label, double quantity, String unit) { this.label = label; this.quantity = quantity; this.unit = unit; }
@Ignore public Recipe(long totalNutrientsId) { this.totalNutrientsId = totalNutrientsId; }
@Ignore public Calibration(double value, int color) { this.value = value; this.color = color; }
@Ignore public WorkLocation(@NonNull NetworkId networkId, WrapLocation l) { super(networkId, l); }