├── source
├── Views
│ ├── _ViewStart.cshtml
│ ├── Home
│ │ ├── About.cshtml
│ │ └── Graph.cshtml
│ ├── Shared
│ │ ├── Error.cshtml
│ │ ├── _ResultsTable.cshtml
│ │ ├── _LoginPartial.cshtml
│ │ ├── _ResultsPartial.cshtml
│ │ └── _Layout.cshtml
│ ├── Web.config
│ └── MyExtensionMethods.cs
├── favicon.ico
├── Global.asax
├── fonts
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.ttf
│ └── glyphicons-halflings-regular.woff
├── Areas
│ └── HelpPage
│ │ ├── Views
│ │ ├── Help
│ │ │ ├── DisplayTemplates
│ │ │ │ ├── ImageSample.cshtml
│ │ │ │ ├── TextSample.cshtml
│ │ │ │ ├── SimpleTypeModelDescription.cshtml
│ │ │ │ ├── ComplexTypeModelDescription.cshtml
│ │ │ │ ├── CollectionModelDescription.cshtml
│ │ │ │ ├── InvalidSample.cshtml
│ │ │ │ ├── DictionaryModelDescription.cshtml
│ │ │ │ ├── KeyValuePairModelDescription.cshtml
│ │ │ │ ├── EnumTypeModelDescription.cshtml
│ │ │ │ ├── Samples.cshtml
│ │ │ │ ├── ModelDescriptionLink.cshtml
│ │ │ │ ├── ApiGroup.cshtml
│ │ │ │ ├── Parameters.cshtml
│ │ │ │ └── HelpPageApiModel.cshtml
│ │ │ ├── ResourceModel.cshtml
│ │ │ ├── Api.cshtml
│ │ │ └── Index.cshtml
│ │ ├── _ViewStart.cshtml
│ │ ├── Shared
│ │ │ └── _Layout.cshtml
│ │ └── Web.config
│ │ ├── ModelDescriptions
│ │ ├── SimpleTypeModelDescription.cs
│ │ ├── DictionaryModelDescription.cs
│ │ ├── CollectionModelDescription.cs
│ │ ├── ParameterAnnotation.cs
│ │ ├── EnumValueDescription.cs
│ │ ├── KeyValuePairModelDescription.cs
│ │ ├── IModelDocumentationProvider.cs
│ │ ├── ModelDescription.cs
│ │ ├── ComplexTypeModelDescription.cs
│ │ ├── EnumTypeModelDescription.cs
│ │ ├── ParameterDescription.cs
│ │ ├── ModelNameAttribute.cs
│ │ └── ModelNameHelper.cs
│ │ ├── SampleGeneration
│ │ ├── SampleDirection.cs
│ │ ├── TextSample.cs
│ │ ├── InvalidSample.cs
│ │ └── ImageSample.cs
│ │ ├── HelpPageAreaRegistration.cs
│ │ ├── ApiDescriptionExtensions.cs
│ │ ├── Controllers
│ │ └── HelpController.cs
│ │ ├── HelpPage.css
│ │ ├── Models
│ │ └── HelpPageApiModel.cs
│ │ └── App_Start
│ │ └── HelpPageConfig.cs
├── Models
│ ├── Message.cs
│ ├── RootMessage.cs
│ ├── PostMessage.cs
│ ├── AppList.cs
│ ├── TeamFunSettings.cs
│ ├── TeamGuestSetting.cs
│ ├── Channel.cs
│ ├── TeamsApp.cs
│ ├── Clone.cs
│ ├── TeamMessagingSettings.cs
│ ├── TeamMemberSettings.cs
│ ├── Member.cs
│ ├── ResultsItem.cs
│ ├── GraphResource.cs
│ ├── Group.cs
│ ├── Team.cs
│ └── ResultsViewModel.cs
├── Scripts
│ ├── _references.js
│ ├── Graph.js
│ ├── respond.min.js
│ ├── respond.matchmedia.addListener.min.js
│ └── jquery.validate.unobtrusive.min.js
├── App_Start
│ ├── FilterConfig.cs
│ ├── RouteConfig.cs
│ ├── BundleConfig.cs
│ └── Startup.Auth.cs
├── AuthProvider
│ ├── IAuthProvider.cs
│ └── AuthProvider.cs
├── Startup.cs
├── Content
│ └── Site.css
├── Controllers
│ ├── ErrorController.cs
│ └── AccountController.cs
├── Global.asax.cs
├── Web.Debug.config
├── Web.Release.config
├── Properties
│ └── AssemblyInfo.cs
├── Utils
│ ├── MsalAppBuilder.cs
│ ├── Constants.cs
│ ├── MSALAccount.cs
│ ├── Globals.cs
│ ├── ClaimPrincipalExtension.cs
│ ├── MSALAppMemoryTokenCache.cs
│ └── MSALAppSessionTokenCache.cs
├── packages.config
└── ImportantFiles
│ └── ServiceHelper.cs
├── Node
├── SampleApp
│ ├── package.json
│ ├── utils
│ │ └── files.js
│ ├── app.js
│ ├── graph
│ │ ├── graph.js
│ │ ├── sendmessage.html
│ │ └── httpsrequesthelper.js
│ ├── README.md
│ └── auth
│ │ ├── auth.js
│ │ ├── login.html
│ │ └── authHelper.js
└── .vscode
│ └── launch.json
├── microsoft-teams-sample-graph.yml
├── LICENSE-CODE
├── ThirdPartyNotices
├── csharp-teams-sample-graph.sln
├── README-localized
├── README-zh-cn.md
├── README-ja-jp.md
├── README-pt-br.md
├── README-ru-ru.md
└── README-es-es.md
├── CONTRIBUTING.md
└── README.md
/source/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "~/Views/Shared/_Layout.cshtml";
3 | }
4 |
--------------------------------------------------------------------------------
/source/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoftgraph/csharp-teams-sample-graph/master/source/favicon.ico
--------------------------------------------------------------------------------
/source/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Microsoft_Teams_Graph_RESTAPIs_Connect.WebApiApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/source/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoftgraph/csharp-teams-sample-graph/master/source/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/source/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoftgraph/csharp-teams-sample-graph/master/source/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/source/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoftgraph/csharp-teams-sample-graph/master/source/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/source/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml:
--------------------------------------------------------------------------------
1 | @using Microsoft_Teams_Graph_RESTAPIs_Connect.Areas.HelpPage
2 | @model ImageSample
3 |
4 |
--------------------------------------------------------------------------------
/source/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml:
--------------------------------------------------------------------------------
1 | @using Microsoft_Teams_Graph_RESTAPIs_Connect.Areas.HelpPage
2 | @model TextSample
3 |
4 |
5 | @Model.Text 6 |-------------------------------------------------------------------------------- /source/Areas/HelpPage/Views/Help/DisplayTemplates/SimpleTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using Microsoft_Teams_Graph_RESTAPIs_Connect.Areas.HelpPage.ModelDescriptions 2 | @model SimpleTypeModelDescription 3 | @Model.Documentation -------------------------------------------------------------------------------- /source/Areas/HelpPage/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | // Change the Layout path below to blend the look and feel of the help page with your existing web pages. 3 | Layout = "~/Areas/HelpPage/Views/Shared/_Layout.cshtml"; 4 | } -------------------------------------------------------------------------------- /source/Areas/HelpPage/ModelDescriptions/SimpleTypeModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace Microsoft_Teams_Graph_RESTAPIs_Connect.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class SimpleTypeModelDescription : ModelDescription 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /source/Areas/HelpPage/Views/Help/DisplayTemplates/ComplexTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using Microsoft_Teams_Graph_RESTAPIs_Connect.Areas.HelpPage.ModelDescriptions 2 | @model ComplexTypeModelDescription 3 | @Html.DisplayFor(m => m.Properties, "Parameters") -------------------------------------------------------------------------------- /source/Areas/HelpPage/ModelDescriptions/DictionaryModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace Microsoft_Teams_Graph_RESTAPIs_Connect.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class DictionaryModelDescription : KeyValuePairModelDescription 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /source/Models/Message.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | 6 | namespace Microsoft_Teams_Graph_RESTAPIs_Connect.Models 7 | { 8 | public class Message 9 | { 10 | public String content { get; set; } 11 | } 12 | } -------------------------------------------------------------------------------- /source/Models/RootMessage.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | 6 | namespace Microsoft_Teams_Graph_RESTAPIs_Connect.Models 7 | { 8 | public class RootMessage 9 | { 10 | public Message body { get; set; } 11 | } 12 | } -------------------------------------------------------------------------------- /source/Areas/HelpPage/ModelDescriptions/CollectionModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace Microsoft_Teams_Graph_RESTAPIs_Connect.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class CollectionModelDescription : ModelDescription 4 | { 5 | public ModelDescription ElementDescription { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /source/Models/PostMessage.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | 6 | namespace Microsoft_Teams_Graph_RESTAPIs_Connect.Models 7 | { 8 | public class PostMessage 9 | { 10 | public RootMessage rootMessage { get; set; } 11 | } 12 | } -------------------------------------------------------------------------------- /source/Areas/HelpPage/Views/Help/DisplayTemplates/CollectionModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using Microsoft_Teams_Graph_RESTAPIs_Connect.Areas.HelpPage.ModelDescriptions 2 | @model CollectionModelDescription 3 | @if (Model.ElementDescription is ComplexTypeModelDescription) 4 | { 5 | @Html.DisplayFor(m => m.ElementDescription) 6 | } -------------------------------------------------------------------------------- /source/Models/AppList.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Web; 6 | 7 | namespace Microsoft_Teams_Graph_RESTAPIs_Connect.Models 8 | { 9 | public class AppList 10 | { 11 | public String teamId { get; set; } 12 | } 13 | } -------------------------------------------------------------------------------- /source/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | 3 | @using Resources 4 | @{ 5 | ViewBag.Title = Resource.About; 6 | } 7 |
@Resource.About_Description
-------------------------------------------------------------------------------- /source/Scripts/_references.js: -------------------------------------------------------------------------------- 1 | ///Sample not available.
13 | } -------------------------------------------------------------------------------- /source/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace Microsoft_Teams_Graph_RESTAPIs_Connect.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class KeyValuePairModelDescription : ModelDescription 4 | { 5 | public ModelDescription KeyModelDescription { get; set; } 6 | 7 | public ModelDescription ValueModelDescription { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /source/Models/TeamGuestSetting.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | 6 | namespace Microsoft_Teams_Graph_RESTAPIs_Connect.Models 7 | { 8 | public class TeamGuestSettings 9 | { 10 | public bool allowCreateUpdateChannels { get; set; } 11 | public bool allowDeleteChannels { get; set; } 12 | } 13 | } -------------------------------------------------------------------------------- /source/Areas/HelpPage/ModelDescriptions/IModelDocumentationProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | 4 | namespace Microsoft_Teams_Graph_RESTAPIs_Connect.Areas.HelpPage.ModelDescriptions 5 | { 6 | public interface IModelDocumentationProvider 7 | { 8 | string GetDocumentation(MemberInfo member); 9 | 10 | string GetDocumentation(Type type); 11 | } 12 | } -------------------------------------------------------------------------------- /source/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | 3 | @using Resources 4 | @{ 5 | ViewBag.Title = Resource.App_Name; 6 | } 7 |10 | @Html.ActionLink("Help Page Home", "Index") 11 |
12 |@Model.Documentation
16 |15 | @Html.ActionLink("Help Page Home", "Index") 16 |
17 |Possible enumeration values:
5 | 6 || Name | Value | Description |
|---|---|---|
| @value.Name | 15 |
16 | @value.Value 17 | |
18 |
19 | @value.Documentation 20 | |
21 |
| @t.Text | 17 |@t.Value | 18 |
Sample not available.
22 | } 23 | else 24 | { 25 | @Html.DisplayFor(s => sample); 26 | } 27 | } 28 |28 | Provide a general description of your APIs here. 29 |
30 |@controllerDocumentation
18 | } 19 || API | Description |
|---|---|
| @api.HttpMethod.Method @api.RelativePath | 28 |
29 | @if (api.Documentation != null)
30 | {
31 | @api.Documentation 32 | } 33 | else 34 | { 35 |No documentation available. 36 | } 37 | |
38 |
| Name | Description | Type | Additional information |
|---|---|---|---|
| @parameter.Name | 20 |
21 | @parameter.Documentation 22 | |
23 | 24 | @Html.DisplayFor(m => modelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = modelDescription }) 25 | | 26 |
27 | @if (parameter.Annotations.Count > 0)
28 | {
29 | foreach (var annotation in parameter.Annotations)
30 | {
31 | @annotation.Documentation 32 | } 33 | } 34 | else 35 | { 36 |None. 37 | } 38 | |
39 |
None.
47 | } 48 | 49 | -------------------------------------------------------------------------------- /source/Views/Shared/_ResultsPartial.cshtml: -------------------------------------------------------------------------------- 1 | 3 | @using Resources; 4 | @model Microsoft_Teams_Graph_RESTAPIs_Connect.Models.ResultsViewModel 5 || @property.Key | 25 |@property.Value | 26 | } 27 | else if (property.Value != null) 28 | { 29 |
@Resource.No_Results
41 | } 42 | } 43 |@description.Documentation
13 | 14 |@Model.RequestDocumentation
22 | 23 | @if (Model.RequestModelDescription != null) 24 | { 25 | @Html.DisplayFor(m => m.RequestModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.RequestModelDescription }) 26 | if (Model.RequestBodyParameters != null) 27 | { 28 | @Html.DisplayFor(m => m.RequestBodyParameters, "Parameters") 29 | } 30 | } 31 | else 32 | { 33 |None.
34 | } 35 | 36 | @if (Model.SampleRequests.Count > 0) 37 | { 38 |@description.ResponseDescription.Documentation
47 | 48 | @if (Model.ResourceDescription != null) 49 | { 50 | @Html.DisplayFor(m => m.ResourceDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ResourceDescription }) 51 | if (Model.ResourceProperties != null) 52 | { 53 | @Html.DisplayFor(m => m.ResourceProperties, "Parameters") 54 | } 55 | } 56 | else 57 | { 58 |None.
59 | } 60 | 61 | @if (Model.SampleResponses.Count > 0) 62 | { 63 |