123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- using System;
- using System.Collections.Generic;
- using JetBrains.Annotations;
- using Unity.Cloud.Collaborate.Models.Structures;
- namespace Unity.Cloud.Collaborate.Models
- {
- internal interface IChangesModel : IModel
- {
-
-
-
- event Action UpdatedChangeList;
-
-
-
- event Action OnUpdatedSelectedChanges;
-
-
-
- event Action<bool> BusyStatusUpdated;
-
-
-
- [NotNull]
- string SavedRevisionSummary { get; set; }
-
-
-
- [NotNull]
- string SavedSearchQuery { get; set; }
-
-
-
- int ToggledCount { get; }
-
-
-
- int TotalCount { get; }
-
-
-
- int ConflictedCount { get; }
-
-
-
- bool Conflicted { get; }
-
-
-
- bool Busy { get; }
-
-
-
- void RequestInitialData();
-
-
-
-
-
-
- bool UpdateEntryToggle([NotNull] string path, bool toggled);
-
-
-
-
-
- [NotNull]
- IReadOnlyList<IChangeEntryData> GetToggledEntries([CanBeNull] string query = null);
-
-
-
-
-
- [NotNull]
- IReadOnlyList<IChangeEntryData> GetUntoggledEntries([CanBeNull] string query = null);
-
-
-
-
-
- [NotNull]
- IReadOnlyList<IChangeEntryData> GetAllEntries([CanBeNull] string query = null);
-
-
-
-
-
- [NotNull]
- IReadOnlyList<IChangeEntryData> GetConflictedEntries([CanBeNull] string query = null);
-
-
-
-
- void RequestDiffChanges([NotNull] string path);
-
-
-
-
- void RequestDiscard([NotNull] IChangeEntry entry);
-
-
-
-
- void RequestBulkDiscard([NotNull] IReadOnlyList<IChangeEntry> entries);
-
-
-
-
-
- void RequestPublish([NotNull] string message, [NotNull] IReadOnlyList<IChangeEntry> changes);
-
-
-
-
- void RequestShowConflictedDifferences([NotNull] string path);
-
-
-
-
- void RequestChooseMerge([NotNull] string path);
-
-
-
-
- void RequestChooseMine([NotNull] string[] paths);
-
-
-
-
- void RequestChooseRemote([NotNull] string[] paths);
- }
- }
|