// Code generated by "./generator ./com.deepin.daemon.timedated"; DO NOT EDIT.

package timedated

import (
	"fmt"

	"github.com/godbus/dbus"
	"github.com/stretchr/testify/mock"
	"github.com/linuxdeepin/go-lib/dbusutil/proxy"
)

type MockTimedated struct {
	MockInterfaceTimedated // interface com.deepin.daemon.Timedated
	proxy.MockObject
}

type MockInterfaceTimedated struct {
	mock.Mock
}

// method SetLocalRTC

func (v *MockInterfaceTimedated) GoSetLocalRTC(flags dbus.Flags, ch chan *dbus.Call, enabled bool, fixSystem bool, message string) *dbus.Call {
	mockArgs := v.Called(flags, ch, enabled, fixSystem, message)

	ret, ok := mockArgs.Get(0).(*dbus.Call)
	if !ok {
		panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0)))
	}

	return ret
}

func (v *MockInterfaceTimedated) SetLocalRTC(flags dbus.Flags, enabled bool, fixSystem bool, message string) error {
	mockArgs := v.Called(flags, enabled, fixSystem, message)

	return mockArgs.Error(0)
}

// method SetNTP

func (v *MockInterfaceTimedated) GoSetNTP(flags dbus.Flags, ch chan *dbus.Call, enabled bool, message string) *dbus.Call {
	mockArgs := v.Called(flags, ch, enabled, message)

	ret, ok := mockArgs.Get(0).(*dbus.Call)
	if !ok {
		panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0)))
	}

	return ret
}

func (v *MockInterfaceTimedated) SetNTP(flags dbus.Flags, enabled bool, message string) error {
	mockArgs := v.Called(flags, enabled, message)

	return mockArgs.Error(0)
}

// method SetNTPServer

func (v *MockInterfaceTimedated) GoSetNTPServer(flags dbus.Flags, ch chan *dbus.Call, server string, message string) *dbus.Call {
	mockArgs := v.Called(flags, ch, server, message)

	ret, ok := mockArgs.Get(0).(*dbus.Call)
	if !ok {
		panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0)))
	}

	return ret
}

func (v *MockInterfaceTimedated) SetNTPServer(flags dbus.Flags, server string, message string) error {
	mockArgs := v.Called(flags, server, message)

	return mockArgs.Error(0)
}

// method SetTime

func (v *MockInterfaceTimedated) GoSetTime(flags dbus.Flags, ch chan *dbus.Call, usec int64, relative bool, message string) *dbus.Call {
	mockArgs := v.Called(flags, ch, usec, relative, message)

	ret, ok := mockArgs.Get(0).(*dbus.Call)
	if !ok {
		panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0)))
	}

	return ret
}

func (v *MockInterfaceTimedated) SetTime(flags dbus.Flags, usec int64, relative bool, message string) error {
	mockArgs := v.Called(flags, usec, relative, message)

	return mockArgs.Error(0)
}

// method SetTimezone

func (v *MockInterfaceTimedated) GoSetTimezone(flags dbus.Flags, ch chan *dbus.Call, timezone string, message string) *dbus.Call {
	mockArgs := v.Called(flags, ch, timezone, message)

	ret, ok := mockArgs.Get(0).(*dbus.Call)
	if !ok {
		panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0)))
	}

	return ret
}

func (v *MockInterfaceTimedated) SetTimezone(flags dbus.Flags, timezone string, message string) error {
	mockArgs := v.Called(flags, timezone, message)

	return mockArgs.Error(0)
}

// property NTPServer s

func (v *MockInterfaceTimedated) NTPServer() proxy.PropString {
	mockArgs := v.Called()

	ret0, ok := mockArgs.Get(0).(*proxy.MockPropString)
	if !ok {
		panic(fmt.Sprintf("assert: arguments: %d failed because object wasn't correct type: %v", 0, mockArgs.Get(0)))
	}

	return ret0
}

// property Timezone s

func (v *MockInterfaceTimedated) Timezone() proxy.PropString {
	mockArgs := v.Called()

	ret0, ok := mockArgs.Get(0).(*proxy.MockPropString)
	if !ok {
		panic(fmt.Sprintf("assert: arguments: %d failed because object wasn't correct type: %v", 0, mockArgs.Get(0)))
	}

	return ret0
}
