1// Code generated by mockery v1.0.0. DO NOT EDIT.
2
3// Regenerate this file using `make store-mocks`.
4
5package mocks
6
7import (
8	model "github.com/mattermost/mattermost-server/v6/model"
9	mock "github.com/stretchr/testify/mock"
10)
11
12// StatusStore is an autogenerated mock type for the StatusStore type
13type StatusStore struct {
14	mock.Mock
15}
16
17// Get provides a mock function with given fields: userID
18func (_m *StatusStore) Get(userID string) (*model.Status, error) {
19	ret := _m.Called(userID)
20
21	var r0 *model.Status
22	if rf, ok := ret.Get(0).(func(string) *model.Status); ok {
23		r0 = rf(userID)
24	} else {
25		if ret.Get(0) != nil {
26			r0 = ret.Get(0).(*model.Status)
27		}
28	}
29
30	var r1 error
31	if rf, ok := ret.Get(1).(func(string) error); ok {
32		r1 = rf(userID)
33	} else {
34		r1 = ret.Error(1)
35	}
36
37	return r0, r1
38}
39
40// GetByIds provides a mock function with given fields: userIds
41func (_m *StatusStore) GetByIds(userIds []string) ([]*model.Status, error) {
42	ret := _m.Called(userIds)
43
44	var r0 []*model.Status
45	if rf, ok := ret.Get(0).(func([]string) []*model.Status); ok {
46		r0 = rf(userIds)
47	} else {
48		if ret.Get(0) != nil {
49			r0 = ret.Get(0).([]*model.Status)
50		}
51	}
52
53	var r1 error
54	if rf, ok := ret.Get(1).(func([]string) error); ok {
55		r1 = rf(userIds)
56	} else {
57		r1 = ret.Error(1)
58	}
59
60	return r0, r1
61}
62
63// GetTotalActiveUsersCount provides a mock function with given fields:
64func (_m *StatusStore) GetTotalActiveUsersCount() (int64, error) {
65	ret := _m.Called()
66
67	var r0 int64
68	if rf, ok := ret.Get(0).(func() int64); ok {
69		r0 = rf()
70	} else {
71		r0 = ret.Get(0).(int64)
72	}
73
74	var r1 error
75	if rf, ok := ret.Get(1).(func() error); ok {
76		r1 = rf()
77	} else {
78		r1 = ret.Error(1)
79	}
80
81	return r0, r1
82}
83
84// ResetAll provides a mock function with given fields:
85func (_m *StatusStore) ResetAll() error {
86	ret := _m.Called()
87
88	var r0 error
89	if rf, ok := ret.Get(0).(func() error); ok {
90		r0 = rf()
91	} else {
92		r0 = ret.Error(0)
93	}
94
95	return r0
96}
97
98// SaveOrUpdate provides a mock function with given fields: status
99func (_m *StatusStore) SaveOrUpdate(status *model.Status) error {
100	ret := _m.Called(status)
101
102	var r0 error
103	if rf, ok := ret.Get(0).(func(*model.Status) error); ok {
104		r0 = rf(status)
105	} else {
106		r0 = ret.Error(0)
107	}
108
109	return r0
110}
111
112// UpdateExpiredDNDStatuses provides a mock function with given fields:
113func (_m *StatusStore) UpdateExpiredDNDStatuses() ([]*model.Status, error) {
114	ret := _m.Called()
115
116	var r0 []*model.Status
117	if rf, ok := ret.Get(0).(func() []*model.Status); ok {
118		r0 = rf()
119	} else {
120		if ret.Get(0) != nil {
121			r0 = ret.Get(0).([]*model.Status)
122		}
123	}
124
125	var r1 error
126	if rf, ok := ret.Get(1).(func() error); ok {
127		r1 = rf()
128	} else {
129		r1 = ret.Error(1)
130	}
131
132	return r0, r1
133}
134
135// UpdateLastActivityAt provides a mock function with given fields: userID, lastActivityAt
136func (_m *StatusStore) UpdateLastActivityAt(userID string, lastActivityAt int64) error {
137	ret := _m.Called(userID, lastActivityAt)
138
139	var r0 error
140	if rf, ok := ret.Get(0).(func(string, int64) error); ok {
141		r0 = rf(userID, lastActivityAt)
142	} else {
143		r0 = ret.Error(0)
144	}
145
146	return r0
147}
148