Commit graph

22 commits

Author SHA1 Message Date
mariusor
0c3f57f637 Added IsNil function to assert to Object or ItemCollection before checking for nil values in Item interface 2021-02-02 14:18:16 +01:00
Marius Orcsik
15ac5c20c7
Updated OnX functions to apply the function on an item collection if that's what's being passed to it
This still has the downside that the collection might contain different types of objects

but I can't think of a better way to do it at the moment
2021-01-31 13:30:40 +01:00
mariusor
56bfed629b Add a way to return nil if unmarshaling an empty object 2021-01-09 18:37:38 +01:00
Marius Orcsik
727077a035
Don't depend on having the type set when trying to call OnX functions 2020-12-30 13:31:02 +01:00
Marius Orcsik
fe5b14f0ba
Added ToLink and OnLink functions 2020-12-28 14:59:16 +01:00
Marius Orcsik
e4ba409251
White space issue fix 2020-12-28 14:58:56 +01:00
Marius Orcsik
ba0c5bf2ae
Fix OnCollectionIntf() func when working with collection pages 2020-08-30 14:46:56 +02:00
Marius Orcsik
4d5fd9ff2d
Making Collection,OrderedCollectin and Item array implement the ItemMatcher interface 2020-03-29 18:26:30 +02:00
Marius Orcsik
11d4d3b2fd
Added OrderedCollection to OnCollectionIntf func handling 2020-03-23 11:27:27 +01:00
Marius Orcsik
78d2a53e63
Clarifying OnCollection usage 2020-01-14 20:57:42 +01:00
Marius Orcsik
2ca069ffb4
Add ordering function by timestamps 2019-12-31 08:55:21 +01:00
Marius Orcsik
df62354866
Some cleanups on helper OnXXX functions 2019-12-05 16:42:27 +01:00
Marius Orcsik
48db6d24ad
Renamed OnPerson to OnActor 2019-12-03 21:53:11 +01:00
Marius Orcsik
c3a38f35e7
Holy shit! Merged the activitystreams repo
Only 3 tests failing
2019-12-03 17:23:59 +01:00
Marius Orcsik
0ad2174ed0
Extending usage of OnXXX functions to cover ItemCollections
Updated activitysatreams package
2019-12-01 19:49:52 +01:00
Marius Orcsik
334d80b393
Added ToObject/OnObject pairs for local Object 2019-09-09 20:21:45 +02:00
Marius Orcsik
75e0ad45ba
Updated OnObject to run correctly for Activity/Person objects 2019-08-29 16:19:11 +02:00
Marius Orcsik
7994fa0b35
Improving On*Collection functions to accept *CollectionPage objects 2019-08-29 12:51:23 +02:00
Marius Orcsik
0af226c689
Allow OnObject function to run on all types of objects 2019-08-23 21:52:03 +02:00
Marius Orcsik
1c9ce8dc10
Added ToX functions for Collection types 2019-08-21 22:32:53 +02:00
Marius Orcsik
585b5f048f
Added more OnX functions 2019-08-20 22:02:37 +02:00
Marius Orcsik
152c99eba3
Added some OnX functions to allow code execution in the context of converting an Item to X transparent to the developer 2019-08-20 21:43:36 +02:00