-
- All Implemented Interfaces:
-
android.os.Parcelable
,java.io.Serializable
public class MenigaBudgetEntry implements Parcelable, Serializable
Copyright 2017 Meniga Iceland Inc.
-
-
Field Summary
Fields Modifier and Type Field Description protected long
id
protected MenigaDecimal
targetAmount
protected DateTime
startDate
protected DateTime
endDate
protected DateTime
updatedAt
protected long
budgetId
protected MenigaDecimal
spentAmount
protected List<Long>
categoryIds
public final static Parcelable.Creator<MenigaBudgetEntry>
CREATOR
-
Method Summary
Modifier and Type Method Description static void
setOperator(MenigaBudgetOperations operator)
boolean
equals(Object o)
int
hashCode()
int
describeContents()
void
writeToParcel(Parcel dest, int flags)
String
toString()
static Result<List<MenigaBudgetEntry>>
fetch(long budgetId)
static Result<List<MenigaBudgetEntry>>
fetch(long budgetId, DateTime month)
static Result<List<MenigaBudgetEntry>>
fetch(long budgetId, DateTime from, DateTime to)
static Result<List<MenigaBudgetEntry>>
fetch(long budgetId, DateTime from, DateTime to, List<Long> categoryIds)
static Result<List<MenigaBudgetEntry>>
fetch(FetchBudgetEntriesFilter filter)
static Result<MenigaBudgetEntry>
fetch(long budgetId, long entryId)
static Result<Void>
update(long budgetId, MenigaDecimal targetAmount, DateTime startDate, DateTime endDate, MenigaCategory category, GenerationType generationType, int generationValue, DateTime wasNotUsed)
Use update instead. static Result<Void>
update(long budgetId, BudgetRulesUpdate parameters)
Use create instead. static Result<List<MenigaBudgetEntry>>
create(long budgetId, NewBudgetEntry parameters)
Result<MenigaBudgetEntry>
update(BudgetEntryUpdate parameters)
Result<Void>
delete()
long
getId()
MenigaDecimal
getTargetAmount()
DateTime
getStartDate()
DateTime
getEndDate()
DateTime
getUpdatedAt()
long
getBudgetId()
MenigaDecimal
getSpentAmount()
List<Long>
getCategoryIds()
-
-
Method Detail
-
setOperator
static void setOperator(MenigaBudgetOperations operator)
-
hashCode
int hashCode()
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
fetch
static Result<List<MenigaBudgetEntry>> fetch(long budgetId)
-
fetch
static Result<List<MenigaBudgetEntry>> fetch(long budgetId, DateTime month)
-
fetch
static Result<List<MenigaBudgetEntry>> fetch(long budgetId, DateTime from, DateTime to)
-
fetch
static Result<List<MenigaBudgetEntry>> fetch(long budgetId, DateTime from, DateTime to, List<Long> categoryIds)
-
fetch
static Result<List<MenigaBudgetEntry>> fetch(FetchBudgetEntriesFilter filter)
-
fetch
static Result<MenigaBudgetEntry> fetch(long budgetId, long entryId)
-
update
@Deprecated() static Result<Void> update(long budgetId, MenigaDecimal targetAmount, DateTime startDate, DateTime endDate, MenigaCategory category, GenerationType generationType, int generationValue, DateTime wasNotUsed)
Use update instead.
-
update
@Deprecated() static Result<Void> update(long budgetId, BudgetRulesUpdate parameters)
Use create instead.
-
create
static Result<List<MenigaBudgetEntry>> create(long budgetId, NewBudgetEntry parameters)
-
update
Result<MenigaBudgetEntry> update(BudgetEntryUpdate parameters)
-
getId
long getId()
-
getTargetAmount
MenigaDecimal getTargetAmount()
-
getStartDate
DateTime getStartDate()
-
getEndDate
DateTime getEndDate()
-
getUpdatedAt
DateTime getUpdatedAt()
-
getBudgetId
long getBudgetId()
-
getSpentAmount
MenigaDecimal getSpentAmount()
-
getCategoryIds
List<Long> getCategoryIds()
-
-
-
-