I have a custom class to be cached using Akavache. This class contains one non-serializable property (it's a ParseFile object). When I try to cache/get a list of this custom class using GetAndFetchLatest, it doesn't work. I figure it may be caused by one property that is non-serializable. Tried JsonIgnore attribute, but didn't help.
Question is, how can I tell Akavache to cache everything in the list of custom class, except the non-serializable property? Sample of the custom class is here, I want it to ignore the Photo property:
[ParseClassName("User")]
public class User : ParseObject
{
[ParseFieldName("name")]
public string Name
{
get { return GetProperty<string>(); }
set { SetProperty<string>(value); }
}
[ParseFieldName("photo")]
public ParseFile Photo
{
get { return GetProperty<ParseFile>(); }
set { SetProperty<ParseFile>(value); }
}
}