|
| 1 | +using System; |
| 2 | + |
| 3 | +namespace Flow.Launcher.Plugin |
| 4 | +{ |
| 5 | + /// <summary> |
| 6 | + /// User Plugin Model for Flow Launcher |
| 7 | + /// </summary> |
| 8 | + public record UserPlugin |
| 9 | + { |
| 10 | + /// <summary> |
| 11 | + /// Unique identifier of the plugin |
| 12 | + /// </summary> |
| 13 | + public string ID { get; set; } |
| 14 | + |
| 15 | + /// <summary> |
| 16 | + /// Name of the plugin |
| 17 | + /// </summary> |
| 18 | + public string Name { get; set; } |
| 19 | + |
| 20 | + /// <summary> |
| 21 | + /// Description of the plugin |
| 22 | + /// </summary> |
| 23 | + public string Description { get; set; } |
| 24 | + |
| 25 | + /// <summary> |
| 26 | + /// Author of the plugin |
| 27 | + /// </summary> |
| 28 | + public string Author { get; set; } |
| 29 | + |
| 30 | + /// <summary> |
| 31 | + /// Version of the plugin |
| 32 | + /// </summary> |
| 33 | + public string Version { get; set; } |
| 34 | + |
| 35 | + /// <summary> |
| 36 | + /// Allow language of the plugin <see cref="AllowedLanguage"/> |
| 37 | + /// </summary> |
| 38 | + public string Language { get; set; } |
| 39 | + |
| 40 | + /// <summary> |
| 41 | + /// Website of the plugin |
| 42 | + /// </summary> |
| 43 | + public string Website { get; set; } |
| 44 | + |
| 45 | + /// <summary> |
| 46 | + /// URL to download the plugin |
| 47 | + /// </summary> |
| 48 | + public string UrlDownload { get; set; } |
| 49 | + |
| 50 | + /// <summary> |
| 51 | + /// URL to the source code of the plugin |
| 52 | + /// </summary> |
| 53 | + public string UrlSourceCode { get; set; } |
| 54 | + |
| 55 | + /// <summary> |
| 56 | + /// URL to the issue tracker of the plugin |
| 57 | + /// </summary> |
| 58 | + public string LocalInstallPath { get; set; } |
| 59 | + |
| 60 | + /// <summary> |
| 61 | + /// Icon path of the plugin |
| 62 | + /// </summary> |
| 63 | + public string IcoPath { get; set; } |
| 64 | + |
| 65 | + /// <summary> |
| 66 | + /// The date when the plugin was last updated |
| 67 | + /// </summary> |
| 68 | + public DateTime? LatestReleaseDate { get; set; } |
| 69 | + |
| 70 | + /// <summary> |
| 71 | + /// The date when the plugin was added to the local system |
| 72 | + /// </summary> |
| 73 | + public DateTime? DateAdded { get; set; } |
| 74 | + |
| 75 | + /// <summary> |
| 76 | + /// The date when the plugin was last updated on the local system |
| 77 | + /// </summary> |
| 78 | + public bool IsFromLocalInstallPath => !string.IsNullOrEmpty(LocalInstallPath); |
| 79 | + } |
| 80 | +} |
0 commit comments