Lean  $LEAN_TAG$
ProjectFile.cs
1 /*
2  * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
3  * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14 */
15 
16 using System;
17 using System.Collections.Generic;
18 using Newtonsoft.Json;
19 
20 namespace QuantConnect.Api
21 {
22  /// <summary>
23  /// File for a project
24  /// </summary>
25  public class ProjectFile
26  {
27  /// <summary>
28  /// Name of a project file
29  /// </summary>
30  [JsonProperty(PropertyName = "name")]
31  public string Name { get; set; }
32 
33  /// <summary>
34  /// Contents of the project file
35  /// </summary>
36  [JsonProperty(PropertyName = "content")]
37  public string Code { get; set; }
38 
39  /// <summary>
40  /// DateTime project file was modified
41  /// </summary>
42  [JsonProperty(PropertyName = "modified")]
43  public DateTime DateModified{ get; set; }
44 
45  /// <summary>
46  /// Indicates if the project file is a library or not
47  /// </summary>
48  [JsonProperty(PropertyName = "isLibrary")]
49  public bool IsLibrary { get; set; }
50 
51  /// <summary>
52  /// Indicates if the project file is open or not
53  /// </summary>
54  [JsonProperty(PropertyName = "open")]
55  public bool Open { get; set; }
56 
57  /// <summary>
58  /// ID of the project
59  /// </summary>
60  [JsonProperty(PropertyName = "projectId")]
61  public int ProjectId { get; set; }
62 
63  /// <summary>
64  /// ID of the project file, can be null
65  /// </summary>
66  [JsonProperty(PropertyName = "id")]
67  public int? Id { get; set; }
68  }
69 
70  /// <summary>
71  /// Response received when creating a file or reading one file or more in a project
72  /// </summary>
74  {
75  /// <summary>
76  /// List of project file information
77  /// </summary>
78  [JsonProperty(PropertyName = "files")]
79  public List<ProjectFile> Files { get; set; }
80  }
81 }