-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
105 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,30 @@ | ||
using Floom.Functions; | ||
namespace Floom.Functions; | ||
|
||
public class FunctionDto | ||
public class BaseFunctionDto | ||
{ | ||
/** | ||
packageName = unique = function url | ||
*/ | ||
public string name { get; set; } | ||
public string description { get; set; } | ||
public string runtimeLanguage { get; set; } | ||
public string runtimeFramework { get; set; } | ||
public string author { get; set; } | ||
public string username { get; set; } | ||
public string version { get; set; } | ||
public double rating { get; set; } | ||
public List<int> downloads { get; set; } | ||
public List<ParameterDto> parameters { get; set; } = new(); | ||
} | ||
public List<int> downloads { get; set; } = new(); | ||
|
||
public class SearchResultFunctionDto | ||
{ | ||
public string id { get; set; } | ||
public string slug { get; set; } | ||
public TranslatedField title { get; set; } // Translated titles | ||
public TranslatedField description { get; set; } // Translated descriptions | ||
public string author { get; set; } | ||
public double rating { get; set; } | ||
} | ||
|
||
public class FeaturedFunctionDto | ||
{ | ||
public string id { get; set; } | ||
public string name { get; set; } | ||
public string slug { get; set; } | ||
public TranslatedField title { get; set; } // Translated titles | ||
public TranslatedField description { get; set; } // Translated descriptions | ||
public TranslatedField promptPlaceholder { get; set; } // Translated descriptions | ||
public string runtimeLanguage { get; set; } | ||
public string runtimeFramework { get; set; } | ||
public string author { get; set; } | ||
public string version { get; set; } | ||
public double rating { get; set; } | ||
public List<int> downloads { get; set; } | ||
public List<FeaturedFunctionParameterDto> parameters { get; set; } = new(); | ||
} | ||
public List<ParameterDto> parameters { get; set; } = new(); | ||
|
||
public class ParameterDto | ||
{ | ||
public string name { get; set; } | ||
public string? description { get; set; } | ||
public bool required { get; set; } | ||
public object? defaultValue { get; set; } | ||
public TranslatedField title { get; set; } | ||
public TranslatedField description { get; set; } | ||
|
||
public TranslatedField promptPlaceholder { get; set; } | ||
} | ||
|
||
public class FeaturedFunctionParameterDto | ||
public class ParameterDto | ||
{ | ||
public string name { get; set; } | ||
public TranslatedField? description { get; set; } | ||
public bool required { get; set; } | ||
public object? defaultValue { get; set; } | ||
} | ||
|
||
} |
Oops, something went wrong.