1
+ using System ;
1
2
using System . Collections . Generic ;
2
3
using JsonApiDotNetCore . Models ;
3
4
using JsonApiDotNetCore . Models . Links ;
@@ -8,21 +9,21 @@ namespace JsonApiDotNetCore.Serialization.Client
8
9
/// TODO: Currently <see cref="ResourceLinks"/> and <see cref="RelationshipLinks"/>
9
10
/// information is ignored by the serializer. This is out of scope for now because
10
11
/// it is not considered mission critical for v4.
11
- public class DeserializedResponseBase
12
+ public abstract class DeserializedResponseBase
12
13
{
13
- public TopLevelLinks Links { get ; internal set ; }
14
- public Dictionary < string , object > Meta { get ; internal set ; }
15
- public object Errors { get ; internal set ; }
16
- public object JsonApi { get ; internal set ; }
14
+ public TopLevelLinks Links { get ; set ; }
15
+ public Dictionary < string , object > Meta { get ; set ; }
16
+ public object Errors { get ; set ; }
17
+ public object JsonApi { get ; set ; }
17
18
}
18
19
19
20
/// <summary>
20
21
/// Represents a deserialized document with "single data".
21
22
/// </summary>
22
23
/// <typeparam name="TResource">Type of the resource in the primary data</typeparam>
23
24
public class DeserializedSingleResponse < TResource > : DeserializedResponseBase where TResource : class , IIdentifiable
24
- {
25
- public TResource Data { get ; internal set ; }
25
+ {
26
+ public TResource Data { get ; set ; }
26
27
}
27
28
28
29
/// <summary>
@@ -31,6 +32,6 @@ public class DeserializedSingleResponse<TResource> : DeserializedResponseBase wh
31
32
/// <typeparam name="TResource">Type of the resource(s) in the primary data</typeparam>
32
33
public class DeserializedListResponse < TResource > : DeserializedResponseBase where TResource : class , IIdentifiable
33
34
{
34
- public List < TResource > Data { get ; internal set ; }
35
+ public List < TResource > Data { get ; set ; }
35
36
}
36
37
}
0 commit comments