mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Allow the user to configure the percentage of test contacts with avatars
This commit is contained in:
@@ -14,13 +14,15 @@ public interface TestDataCreator {
|
||||
* @param numContacts Number of contacts to create. Must be >= 1
|
||||
* @param numPrivateMsgs Number of private messages to create for each
|
||||
* contact.
|
||||
* @param avatarPercent Percentage of contacts
|
||||
* that will use a random profile image. Between 0 and 100.
|
||||
* @param numBlogPosts Number of blog posts to create.
|
||||
* @param numForums Number of forums to create.
|
||||
* @param numForumPosts Number of forum posts to create per forum.
|
||||
*/
|
||||
void createTestData(int numContacts, int numPrivateMsgs, int numBlogPosts,
|
||||
int numForums, int numForumPosts);
|
||||
void createTestData(int numContacts, int numPrivateMsgs, int avatarPercent,
|
||||
int numBlogPosts, int numForums, int numForumPosts);
|
||||
|
||||
@IoExecutor
|
||||
Contact addContact(String name) throws DbException;
|
||||
Contact addContact(String name, boolean avatar) throws DbException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user