Skip to content

Commit

Permalink
Add doc comments to CreateSense and CreateExampleSentence
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Jan 13, 2025
1 parent 228ad0f commit af5d72f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions backend/FwLite/MiniLcm/IMiniLcmWriteApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ Task<WritingSystem> UpdateWritingSystem(WritingSystemId id,
#endregion

#region Sense
/// <summary>
/// Creates the provided sense and adds it to the specified entry
/// </summary>
/// <param name="entryId">The ID of the sense's parent entry</param>
/// <param name="sesnse">The sense to create</param>
/// <param name="position">Where the sense should be inserted in the entry's list of senses. If null it will be appended to the end of the list.</param>
/// <returns></returns>
Task<Sense> CreateSense(Guid entryId, Sense sense, BetweenPosition? position = null);
Task<Sense> UpdateSense(Guid entryId, Guid senseId, UpdateObjectInput<Sense> update);
Task<Sense> UpdateSense(Guid entryId, Sense before, Sense after);
Expand All @@ -57,6 +64,14 @@ Task<WritingSystem> UpdateWritingSystem(WritingSystemId id,
#endregion

#region ExampleSentence
/// <summary>
/// Creates the provided example sentence and adds it to the specified sense
/// </summary>
/// <param name="entryId">The ID of the sense's parent entry</param>
/// <param name="senseId">The ID of example sentence's parent sense</param>
/// <param name="exampleSentence">The example sentence to create</param>
/// <param name="position">Where the example sentence should be inserted in the sense's list of example sentences. If null it will be appended to the end of the list.</param>
/// <returns></returns>
Task<ExampleSentence> CreateExampleSentence(Guid entryId, Guid senseId, ExampleSentence exampleSentence, BetweenPosition? position = null);
Task<ExampleSentence> UpdateExampleSentence(Guid entryId,
Guid senseId,
Expand Down

0 comments on commit af5d72f

Please sign in to comment.