/*This file is automatically generated by pkg.deepin.io/dbus-generator. Don't edit it*/
package lunarcalendar

import "pkg.deepin.io/lib/dbus"
import "pkg.deepin.io/lib/dbus/property"
import "reflect"
import "sync"
import "runtime"
import "fmt"
import "errors"

/*prevent compile error*/
var _ = fmt.Println
var _ = runtime.SetFinalizer
var _ = sync.NewCond
var _ = reflect.TypeOf
var _ = property.BaseObserver{}

type LunarCalendar struct {
	Path     dbus.ObjectPath
	DestName string
	core     *dbus.Object
}

func (obj *LunarCalendar) GetLunarDateBySolar(arg0 int32, arg1 int32, arg2 int32) (arg3 []interface{}, arg4 bool, arg5 bool, _err error) {
	_err = obj.core.Call("com.deepin.api.LunarCalendar.GetLunarDateBySolar", 0, arg0, arg1, arg2).Store(&arg3, &arg4, &arg5)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *LunarCalendar) GetLunarInfoBySolar(arg0 int32, arg1 int32, arg2 int32) (arg3 []interface{}, arg4 bool, _err error) {
	_err = obj.core.Call("com.deepin.api.LunarCalendar.GetLunarInfoBySolar", 0, arg0, arg1, arg2).Store(&arg3, &arg4)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *LunarCalendar) GetLunarMonthCalendar(arg0 int32, arg1 int32, arg2 bool) (arg3 []interface{}, arg4 bool, _err error) {
	_err = obj.core.Call("com.deepin.api.LunarCalendar.GetLunarMonthCalendar", 0, arg0, arg1, arg2).Store(&arg3, &arg4)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *LunarCalendar) GetSolarDateByLunar(arg0 int32, arg1 int32, arg2 int32, arg3 bool) (arg4 []interface{}, arg5 bool, _err error) {
	_err = obj.core.Call("com.deepin.api.LunarCalendar.GetSolarDateByLunar", 0, arg0, arg1, arg2, arg3).Store(&arg4, &arg5)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func (obj *LunarCalendar) GetSolarMonthCalendar(arg0 int32, arg1 int32, arg2 bool) (arg3 []interface{}, arg4 bool, _err error) {
	_err = obj.core.Call("com.deepin.api.LunarCalendar.GetSolarMonthCalendar", 0, arg0, arg1, arg2).Store(&arg3, &arg4)
	if _err != nil {
		fmt.Println(_err)
	}
	return
}

func NewLunarCalendar(destName string, path dbus.ObjectPath) (*LunarCalendar, error) {
	if !path.IsValid() {
		return nil, errors.New("The path of '" + string(path) + "' is invalid.")
	}

	core := getBus().Object(destName, path)

	obj := &LunarCalendar{Path: path, DestName: destName, core: core}

	return obj, nil
}
