Skip to content

Commit b74bac7

Browse files
committed
Updated generated code snippets
1 parent 34b4a89 commit b74bac7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+878
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System;
2+
using PnP.Core.Services;
3+
4+
namespace PnP.Core.Model.SharePoint
5+
{
6+
/// <summary>
7+
/// CommentsAPI class, write your custom code here
8+
/// </summary>
9+
[SharePointType("Microsoft.SharePoint.Comments.CommentsAPI", Uri = "_api/xxx", LinqGet = "_api/xxx")]
10+
internal partial class CommentsAPI : BaseDataModel<ICommentsAPI>, ICommentsAPI
11+
{
12+
#region Construction
13+
public CommentsAPI()
14+
{
15+
}
16+
#endregion
17+
18+
#region Properties
19+
#region New properties
20+
21+
public string Id4a81de82eeb94d6080ea5bf63e27023a { get => GetValue<string>(); set => SetValue(value); }
22+
23+
#endregion
24+
25+
#endregion
26+
27+
#region Extension methods
28+
#endregion
29+
}
30+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
using System;
2+
using PnP.Core.Services;
3+
4+
namespace PnP.Core.Model.SharePoint
5+
{
6+
/// <summary>
7+
/// comment class, write your custom code here
8+
/// </summary>
9+
[SharePointType("Microsoft.SharePoint.Comments.comment", Uri = "_api/xxx", LinqGet = "_api/xxx")]
10+
internal partial class comment : BaseDataModel<Icomment>, Icomment
11+
{
12+
#region Construction
13+
public comment()
14+
{
15+
}
16+
#endregion
17+
18+
#region Properties
19+
#region New properties
20+
21+
public DateTime CreatedDate { get => GetValue<DateTime>(); set => SetValue(value); }
22+
23+
public string Id { get => GetValue<string>(); set => SetValue(value); }
24+
25+
public bool IsLikedByUser { get => GetValue<bool>(); set => SetValue(value); }
26+
27+
public bool IsReply { get => GetValue<bool>(); set => SetValue(value); }
28+
29+
public int ItemId { get => GetValue<int>(); set => SetValue(value); }
30+
31+
public int LikeCount { get => GetValue<int>(); set => SetValue(value); }
32+
33+
public Guid ListId { get => GetValue<Guid>(); set => SetValue(value); }
34+
35+
public string ParentId { get => GetValue<string>(); set => SetValue(value); }
36+
37+
public string RelativeCreatedDate { get => GetValue<string>(); set => SetValue(value); }
38+
39+
public int ReplyCount { get => GetValue<int>(); set => SetValue(value); }
40+
41+
public string Text { get => GetValue<string>(); set => SetValue(value); }
42+
43+
public IuserEntityCollection LikedBy { get => GetModelCollectionValue<IuserEntityCollection>(); }
44+
45+
46+
public IcommentCollection Replies { get => GetModelCollectionValue<IcommentCollection>(); }
47+
48+
49+
#endregion
50+
51+
[KeyProperty(nameof(Id))]
52+
public override object Key { get => Id; set => Id = value.ToString(); }
53+
54+
55+
#endregion
56+
57+
#region Extension methods
58+
#endregion
59+
}
60+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using PnP.Core.QueryModel;
2+
using PnP.Core.Services;
3+
using System;
4+
using System.Linq;
5+
using System.Threading.Tasks;
6+
7+
namespace PnP.Core.Model.SharePoint
8+
{
9+
internal partial class commentCollection : QueryableDataModelCollection<Icomment>, IcommentCollection
10+
{
11+
public commentCollection(PnPContext context, IDataModelParent parent, string memberName) : base(context, parent, memberName)
12+
{
13+
PnPContext = context;
14+
Parent = parent;
15+
}
16+
}
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using PnP.Core.QueryModel;
2+
using PnP.Core.Services;
3+
using System;
4+
using System.Linq;
5+
using System.Threading.Tasks;
6+
7+
namespace PnP.Core.Model.SharePoint
8+
{
9+
internal partial class userEntityCollection : QueryableDataModelCollection<IuserEntity>, IuserEntityCollection
10+
{
11+
public userEntityCollection(PnPContext context, IDataModelParent parent, string memberName) : base(context, parent, memberName)
12+
{
13+
PnPContext = context;
14+
Parent = parent;
15+
}
16+
}
17+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using System;
2+
3+
namespace PnP.Core.Model.SharePoint
4+
{
5+
/// <summary>
6+
/// Public interface to define a CommentsAPI object
7+
/// </summary>
8+
[ConcreteType(typeof(CommentsAPI))]
9+
public interface ICommentsAPI : IDataModel<ICommentsAPI>, IDataModelGet<ICommentsAPI>, IDataModelUpdate, IDataModelDelete
10+
{
11+
12+
#region New properties
13+
14+
/// <summary>
15+
/// To update...
16+
/// </summary>
17+
public string Id4a81de82eeb94d6080ea5bf63e27023a { get; set; }
18+
19+
#endregion
20+
21+
}
22+
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
using System;
2+
3+
namespace PnP.Core.Model.SharePoint
4+
{
5+
/// <summary>
6+
/// Public interface to define a comment object
7+
/// </summary>
8+
[ConcreteType(typeof(comment))]
9+
public interface Icomment : IDataModel<Icomment>, IDataModelGet<Icomment>, IDataModelUpdate, IDataModelDelete
10+
{
11+
12+
#region New properties
13+
14+
/// <summary>
15+
/// To update...
16+
/// </summary>
17+
public DateTime CreatedDate { get; set; }
18+
19+
/// <summary>
20+
/// To update...
21+
/// </summary>
22+
public string Id { get; set; }
23+
24+
/// <summary>
25+
/// To update...
26+
/// </summary>
27+
public bool IsLikedByUser { get; set; }
28+
29+
/// <summary>
30+
/// To update...
31+
/// </summary>
32+
public bool IsReply { get; set; }
33+
34+
/// <summary>
35+
/// To update...
36+
/// </summary>
37+
public int ItemId { get; set; }
38+
39+
/// <summary>
40+
/// To update...
41+
/// </summary>
42+
public int LikeCount { get; set; }
43+
44+
/// <summary>
45+
/// To update...
46+
/// </summary>
47+
public Guid ListId { get; set; }
48+
49+
/// <summary>
50+
/// To update...
51+
/// </summary>
52+
public string ParentId { get; set; }
53+
54+
/// <summary>
55+
/// To update...
56+
/// </summary>
57+
public string RelativeCreatedDate { get; set; }
58+
59+
/// <summary>
60+
/// To update...
61+
/// </summary>
62+
public int ReplyCount { get; set; }
63+
64+
/// <summary>
65+
/// To update...
66+
/// </summary>
67+
public string Text { get; set; }
68+
69+
/// <summary>
70+
/// To update...
71+
/// </summary>
72+
public IuserEntityCollection LikedBy { get; }
73+
74+
/// <summary>
75+
/// To update...
76+
/// </summary>
77+
public IcommentCollection Replies { get; }
78+
79+
#endregion
80+
81+
}
82+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using PnP.Core.Services;
2+
using System.Linq;
3+
4+
namespace PnP.Core.Model.SharePoint
5+
{
6+
/// <summary>
7+
/// Public interface to define a collection of comment objects
8+
/// </summary>
9+
[ConcreteType(typeof(commentCollection))]
10+
public interface IcommentCollection : IQueryable<Icomment>, IDataModelCollection<Icomment>
11+
{
12+
}
13+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using PnP.Core.Services;
2+
using System.Linq;
3+
4+
namespace PnP.Core.Model.SharePoint
5+
{
6+
/// <summary>
7+
/// Public interface to define a collection of userEntity objects
8+
/// </summary>
9+
[ConcreteType(typeof(userEntityCollection))]
10+
public interface IuserEntityCollection : IQueryable<IuserEntity>, IDataModelCollection<IuserEntity>
11+
{
12+
}
13+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System;
2+
using PnP.Core.Services;
3+
4+
namespace PnP.Core.Model.SharePoint
5+
{
6+
/// <summary>
7+
/// LikesAPI class, write your custom code here
8+
/// </summary>
9+
[SharePointType("Microsoft.SharePoint.Likes.LikesAPI", Uri = "_api/xxx", LinqGet = "_api/xxx")]
10+
internal partial class LikesAPI : BaseDataModel<ILikesAPI>, ILikesAPI
11+
{
12+
#region Construction
13+
public LikesAPI()
14+
{
15+
}
16+
#endregion
17+
18+
#region Properties
19+
#region New properties
20+
21+
public string Id4a81de82eeb94d6080ea5bf63e27023a { get => GetValue<string>(); set => SetValue(value); }
22+
23+
#endregion
24+
25+
#endregion
26+
27+
#region Extension methods
28+
#endregion
29+
}
30+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System;
2+
using PnP.Core.Services;
3+
4+
namespace PnP.Core.Model.SharePoint
5+
{
6+
/// <summary>
7+
/// likedByInformation class, write your custom code here
8+
/// </summary>
9+
[SharePointType("Microsoft.SharePoint.Likes.likedByInformation", Uri = "_api/xxx", LinqGet = "_api/xxx")]
10+
internal partial class likedByInformation : BaseDataModel<IlikedByInformation>, IlikedByInformation
11+
{
12+
#region Construction
13+
public likedByInformation()
14+
{
15+
}
16+
#endregion
17+
18+
#region Properties
19+
#region New properties
20+
21+
public bool IsLikedByUser { get => GetValue<bool>(); set => SetValue(value); }
22+
23+
public IuserEntityCollection LikedBy { get => GetModelCollectionValue<IuserEntityCollection>(); }
24+
25+
26+
#endregion
27+
28+
#endregion
29+
30+
#region Extension methods
31+
#endregion
32+
}
33+
}

0 commit comments

Comments
 (0)