func (it *RoomFactoryUnpauseIterator) Error() error {
	return it.fail
}
Error returns any retrieval or parsing error occurred during filtering.
package bindings
import (
	"math/big"
	"strings"
	ethereum "github.com/ethereum/go-ethereum"
	"github.com/ethereum/go-ethereum/accounts/abi"
	"github.com/ethereum/go-ethereum/accounts/abi/bind"
	"github.com/ethereum/go-ethereum/common"
	"github.com/ethereum/go-ethereum/core/types"
	"github.com/ethereum/go-ethereum/event"
)
const RoomFactoryABI = "[{\"constant\":false,\"inputs\":[],\"name\":\"createRoom\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"destroy\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_recipient\",\"type\":\"address\"}],\"name\":\"destroyAndSend\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_creator\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_room\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_depositedValue\",\"type\":\"uint256\"}],\"name\":\"RoomCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"Pause\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"Unpause\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"previousOwner\",\"type\":\"address\"}],\"name\":\"OwnershipRenounced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"}]"
type RoomFactory struct {
	RoomFactoryCaller      
	RoomFactoryTransactor  
	RoomFactoryFilterer    
}
type RoomFactoryCaller struct {
	contract *bind.BoundContract  
}
type RoomFactoryTransactor struct {
	contract *bind.BoundContract  
}
type RoomFactoryFilterer struct {
	contract *bind.BoundContract  
}
type RoomFactorySession struct {
	Contract     *RoomFactory       
	CallOpts     bind.CallOpts      
	TransactOpts bind.TransactOpts  
}
type RoomFactoryCallerSession struct {
	Contract *RoomFactoryCaller  
	CallOpts bind.CallOpts       
}
type RoomFactoryTransactorSession struct {
	Contract     *RoomFactoryTransactor  
	TransactOpts bind.TransactOpts       
}
type RoomFactoryRaw struct {
	Contract *RoomFactory  
}
type RoomFactoryCallerRaw struct {
	Contract *RoomFactoryCaller  
}
type RoomFactoryTransactorRaw struct {
	Contract *RoomFactoryTransactor  
}
func NewRoomFactory(address common.Address, backend bind.ContractBackend) (*RoomFactory, error) {
	contract, err := bindRoomFactory(address, backend, backend, backend)
	if err != nil {
		return nil, err
	}
	return &RoomFactory{RoomFactoryCaller: RoomFactoryCaller{contract: contract}, RoomFactoryTransactor: RoomFactoryTransactor{contract: contract}, RoomFactoryFilterer: RoomFactoryFilterer{contract: contract}}, nil
}
func NewRoomFactoryCaller(address common.Address, caller bind.ContractCaller) (*RoomFactoryCaller, error) {
	contract, err := bindRoomFactory(address, caller, nil, nil)
	if err != nil {
		return nil, err
	}
	return &RoomFactoryCaller{contract: contract}, nil
}
func NewRoomFactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*RoomFactoryTransactor, error) {
	contract, err := bindRoomFactory(address, nil, transactor, nil)
	if err != nil {
		return nil, err
	}
	return &RoomFactoryTransactor{contract: contract}, nil
}
func NewRoomFactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*RoomFactoryFilterer, error) {
	contract, err := bindRoomFactory(address, nil, nil, filterer)
	if err != nil {
		return nil, err
	}
	return &RoomFactoryFilterer{contract: contract}, nil
}
func bindRoomFactory(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
	parsed, err := abi.JSON(strings.NewReader(RoomFactoryABI))
	if err != nil {
		return nil, err
	}
	return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
}
func (_RoomFactory *RoomFactoryRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
	return _RoomFactory.Contract.RoomFactoryCaller.contract.Call(opts, result, method, params...)
}
func (_RoomFactory *RoomFactoryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
	return _RoomFactory.Contract.RoomFactoryTransactor.contract.Transfer(opts)
}
func (_RoomFactory *RoomFactoryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
	return _RoomFactory.Contract.RoomFactoryTransactor.contract.Transact(opts, method, params...)
}
func (_RoomFactory *RoomFactoryCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
	return _RoomFactory.Contract.contract.Call(opts, result, method, params...)
}
func (_RoomFactory *RoomFactoryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
	return _RoomFactory.Contract.contract.Transfer(opts)
}
func (_RoomFactory *RoomFactoryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
	return _RoomFactory.Contract.contract.Transact(opts, method, params...)
}
func (_RoomFactory *RoomFactoryCaller) Owner(opts *bind.CallOpts) (common.Address, error) {
	var (
		ret0 = new(common.Address)
	)
	out := ret0
	err := _RoomFactory.contract.Call(opts, out, "owner")
	return *ret0, err
}
func (_RoomFactory *RoomFactorySession) Owner() (common.Address, error) {
	return _RoomFactory.Contract.Owner(&_RoomFactory.CallOpts)
}
func (_RoomFactory *RoomFactoryCallerSession) Owner() (common.Address, error) {
	return _RoomFactory.Contract.Owner(&_RoomFactory.CallOpts)
}
func (_RoomFactory *RoomFactoryCaller) Paused(opts *bind.CallOpts) (bool, error) {
	var (
		ret0 = new(bool)
	)
	out := ret0
	err := _RoomFactory.contract.Call(opts, out, "paused")
	return *ret0, err
}
func (_RoomFactory *RoomFactorySession) Paused() (bool, error) {
	return _RoomFactory.Contract.Paused(&_RoomFactory.CallOpts)
}
func (_RoomFactory *RoomFactoryCallerSession) Paused() (bool, error) {
	return _RoomFactory.Contract.Paused(&_RoomFactory.CallOpts)
}
func (_RoomFactory *RoomFactoryTransactor) CreateRoom(opts *bind.TransactOpts) (*types.Transaction, error) {
	return _RoomFactory.contract.Transact(opts, "createRoom")
}
func (_RoomFactory *RoomFactorySession) CreateRoom() (*types.Transaction, error) {
	return _RoomFactory.Contract.CreateRoom(&_RoomFactory.TransactOpts)
}
func (_RoomFactory *RoomFactoryTransactorSession) CreateRoom() (*types.Transaction, error) {
	return _RoomFactory.Contract.CreateRoom(&_RoomFactory.TransactOpts)
}
func (_RoomFactory *RoomFactoryTransactor) Destroy(opts *bind.TransactOpts) (*types.Transaction, error) {
	return _RoomFactory.contract.Transact(opts, "destroy")
}
func (_RoomFactory *RoomFactorySession) Destroy() (*types.Transaction, error) {
	return _RoomFactory.Contract.Destroy(&_RoomFactory.TransactOpts)
}
func (_RoomFactory *RoomFactoryTransactorSession) Destroy() (*types.Transaction, error) {
	return _RoomFactory.Contract.Destroy(&_RoomFactory.TransactOpts)
}
func (_RoomFactory *RoomFactoryTransactor) DestroyAndSend(opts *bind.TransactOpts, _recipient common.Address) (*types.Transaction, error) {
	return _RoomFactory.contract.Transact(opts, "destroyAndSend", _recipient)
}
func (_RoomFactory *RoomFactorySession) DestroyAndSend(_recipient common.Address) (*types.Transaction, error) {
	return _RoomFactory.Contract.DestroyAndSend(&_RoomFactory.TransactOpts, _recipient)
}
func (_RoomFactory *RoomFactoryTransactorSession) DestroyAndSend(_recipient common.Address) (*types.Transaction, error) {
	return _RoomFactory.Contract.DestroyAndSend(&_RoomFactory.TransactOpts, _recipient)
}
func (_RoomFactory *RoomFactoryTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error) {
	return _RoomFactory.contract.Transact(opts, "pause")
}
func (_RoomFactory *RoomFactorySession) Pause() (*types.Transaction, error) {
	return _RoomFactory.Contract.Pause(&_RoomFactory.TransactOpts)
}
func (_RoomFactory *RoomFactoryTransactorSession) Pause() (*types.Transaction, error) {
	return _RoomFactory.Contract.Pause(&_RoomFactory.TransactOpts)
}
func (_RoomFactory *RoomFactoryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {
	return _RoomFactory.contract.Transact(opts, "renounceOwnership")
}
func (_RoomFactory *RoomFactorySession) RenounceOwnership() (*types.Transaction, error) {
	return _RoomFactory.Contract.RenounceOwnership(&_RoomFactory.TransactOpts)
}
func (_RoomFactory *RoomFactoryTransactorSession) RenounceOwnership() (*types.Transaction, error) {
	return _RoomFactory.Contract.RenounceOwnership(&_RoomFactory.TransactOpts)
}
func (_RoomFactory *RoomFactoryTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error) {
	return _RoomFactory.contract.Transact(opts, "transferOwnership", _newOwner)
}
func (_RoomFactory *RoomFactorySession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {
	return _RoomFactory.Contract.TransferOwnership(&_RoomFactory.TransactOpts, _newOwner)
}
func (_RoomFactory *RoomFactoryTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error) {
	return _RoomFactory.Contract.TransferOwnership(&_RoomFactory.TransactOpts, _newOwner)
}
func (_RoomFactory *RoomFactoryTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error) {
	return _RoomFactory.contract.Transact(opts, "unpause")
}
func (_RoomFactory *RoomFactorySession) Unpause() (*types.Transaction, error) {
	return _RoomFactory.Contract.Unpause(&_RoomFactory.TransactOpts)
}
func (_RoomFactory *RoomFactoryTransactorSession) Unpause() (*types.Transaction, error) {
	return _RoomFactory.Contract.Unpause(&_RoomFactory.TransactOpts)
}
type RoomFactoryOwnershipRenouncedIterator struct {
	Event *RoomFactoryOwnershipRenounced  
	contract *bind.BoundContract  
	event    string               
	logs chan types.Log         
	sub  ethereum.Subscription  
	done bool                   
	fail error                  
}
func (it *RoomFactoryOwnershipRenouncedIterator) Next() bool {
	if it.fail != nil {
		return false
	}
	if it.done {
		select {
		case log := <-it.logs:
			it.Event = new(RoomFactoryOwnershipRenounced)
			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
				it.fail = err
				return false
			}
			it.Event.Raw = log
			return true
		default:
			return false
		}
	}
	select {
	case log := <-it.logs:
		it.Event = new(RoomFactoryOwnershipRenounced)
		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
			it.fail = err
			return false
		}
		it.Event.Raw = log
		return true
	case err := <-it.sub.Err():
		it.done = true
		it.fail = err
		return it.Next()
	}
}
func (it *RoomFactoryOwnershipRenouncedIterator) Error() error {
	return it.fail
}
func (it *RoomFactoryOwnershipRenouncedIterator) Close() error {
	it.sub.Unsubscribe()
	return nil
}
type RoomFactoryOwnershipRenounced struct {
	PreviousOwner common.Address
	Raw           types.Log  
}
func (_RoomFactory *RoomFactoryFilterer) FilterOwnershipRenounced(opts *bind.FilterOpts, previousOwner []common.Address) (*RoomFactoryOwnershipRenouncedIterator, error) {
	var previousOwnerRule []interface{}
	for _, previousOwnerItem := range previousOwner {
		previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
	}
	logs, sub, err := _RoomFactory.contract.FilterLogs(opts, "OwnershipRenounced", previousOwnerRule)
	if err != nil {
		return nil, err
	}
	return &RoomFactoryOwnershipRenouncedIterator{contract: _RoomFactory.contract, event: "OwnershipRenounced", logs: logs, sub: sub}, nil
}
func (_RoomFactory *RoomFactoryFilterer) WatchOwnershipRenounced(opts *bind.WatchOpts, sink chan<- *RoomFactoryOwnershipRenounced, previousOwner []common.Address) (event.Subscription, error) {
	var previousOwnerRule []interface{}
	for _, previousOwnerItem := range previousOwner {
		previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
	}
	logs, sub, err := _RoomFactory.contract.WatchLogs(opts, "OwnershipRenounced", previousOwnerRule)
	if err != nil {
		return nil, err
	}
	return event.NewSubscription(func(quit <-chan struct{}) error {
		defer sub.Unsubscribe()
		for {
			select {
			case log := <-logs:
				event := new(RoomFactoryOwnershipRenounced)
				if err := _RoomFactory.contract.UnpackLog(event, "OwnershipRenounced", log); err != nil {
					return err
				}
				event.Raw = log
				select {
				case sink <- event:
				case err := <-sub.Err():
					return err
				case <-quit:
					return nil
				}
			case err := <-sub.Err():
				return err
			case <-quit:
				return nil
			}
		}
	}), nil
}
type RoomFactoryOwnershipTransferredIterator struct {
	Event *RoomFactoryOwnershipTransferred  
	contract *bind.BoundContract  
	event    string               
	logs chan types.Log         
	sub  ethereum.Subscription  
	done bool                   
	fail error                  
}
func (it *RoomFactoryOwnershipTransferredIterator) Next() bool {
	if it.fail != nil {
		return false
	}
	if it.done {
		select {
		case log := <-it.logs:
			it.Event = new(RoomFactoryOwnershipTransferred)
			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
				it.fail = err
				return false
			}
			it.Event.Raw = log
			return true
		default:
			return false
		}
	}
	select {
	case log := <-it.logs:
		it.Event = new(RoomFactoryOwnershipTransferred)
		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
			it.fail = err
			return false
		}
		it.Event.Raw = log
		return true
	case err := <-it.sub.Err():
		it.done = true
		it.fail = err
		return it.Next()
	}
}
func (it *RoomFactoryOwnershipTransferredIterator) Error() error {
	return it.fail
}
func (it *RoomFactoryOwnershipTransferredIterator) Close() error {
	it.sub.Unsubscribe()
	return nil
}
type RoomFactoryOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log  
}
func (_RoomFactory *RoomFactoryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*RoomFactoryOwnershipTransferredIterator, error) {
	var previousOwnerRule []interface{}
	for _, previousOwnerItem := range previousOwner {
		previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
	}
	var newOwnerRule []interface{}
	for _, newOwnerItem := range newOwner {
		newOwnerRule = append(newOwnerRule, newOwnerItem)
	}
	logs, sub, err := _RoomFactory.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)
	if err != nil {
		return nil, err
	}
	return &RoomFactoryOwnershipTransferredIterator{contract: _RoomFactory.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil
}
func (_RoomFactory *RoomFactoryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *RoomFactoryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {
	var previousOwnerRule []interface{}
	for _, previousOwnerItem := range previousOwner {
		previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
	}
	var newOwnerRule []interface{}
	for _, newOwnerItem := range newOwner {
		newOwnerRule = append(newOwnerRule, newOwnerItem)
	}
	logs, sub, err := _RoomFactory.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)
	if err != nil {
		return nil, err
	}
	return event.NewSubscription(func(quit <-chan struct{}) error {
		defer sub.Unsubscribe()
		for {
			select {
			case log := <-logs:
				event := new(RoomFactoryOwnershipTransferred)
				if err := _RoomFactory.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil {
					return err
				}
				event.Raw = log
				select {
				case sink <- event:
				case err := <-sub.Err():
					return err
				case <-quit:
					return nil
				}
			case err := <-sub.Err():
				return err
			case <-quit:
				return nil
			}
		}
	}), nil
}
type RoomFactoryPauseIterator struct {
	Event *RoomFactoryPause  
	contract *bind.BoundContract  
	event    string               
	logs chan types.Log         
	sub  ethereum.Subscription  
	done bool                   
	fail error                  
}
func (it *RoomFactoryPauseIterator) Next() bool {
	if it.fail != nil {
		return false
	}
	if it.done {
		select {
		case log := <-it.logs:
			it.Event = new(RoomFactoryPause)
			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
				it.fail = err
				return false
			}
			it.Event.Raw = log
			return true
		default:
			return false
		}
	}
	select {
	case log := <-it.logs:
		it.Event = new(RoomFactoryPause)
		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
			it.fail = err
			return false
		}
		it.Event.Raw = log
		return true
	case err := <-it.sub.Err():
		it.done = true
		it.fail = err
		return it.Next()
	}
}
func (it *RoomFactoryPauseIterator) Error() error {
	return it.fail
}
func (it *RoomFactoryPauseIterator) Close() error {
	it.sub.Unsubscribe()
	return nil
}
type RoomFactoryPause struct {
	Raw types.Log  
}
func (_RoomFactory *RoomFactoryFilterer) FilterPause(opts *bind.FilterOpts) (*RoomFactoryPauseIterator, error) {
	logs, sub, err := _RoomFactory.contract.FilterLogs(opts, "Pause")
	if err != nil {
		return nil, err
	}
	return &RoomFactoryPauseIterator{contract: _RoomFactory.contract, event: "Pause", logs: logs, sub: sub}, nil
}
func (_RoomFactory *RoomFactoryFilterer) WatchPause(opts *bind.WatchOpts, sink chan<- *RoomFactoryPause) (event.Subscription, error) {
	logs, sub, err := _RoomFactory.contract.WatchLogs(opts, "Pause")
	if err != nil {
		return nil, err
	}
	return event.NewSubscription(func(quit <-chan struct{}) error {
		defer sub.Unsubscribe()
		for {
			select {
			case log := <-logs:
				event := new(RoomFactoryPause)
				if err := _RoomFactory.contract.UnpackLog(event, "Pause", log); err != nil {
					return err
				}
				event.Raw = log
				select {
				case sink <- event:
				case err := <-sub.Err():
					return err
				case <-quit:
					return nil
				}
			case err := <-sub.Err():
				return err
			case <-quit:
				return nil
			}
		}
	}), nil
}
type RoomFactoryRoomCreatedIterator struct {
	Event *RoomFactoryRoomCreated  
	contract *bind.BoundContract  
	event    string               
	logs chan types.Log         
	sub  ethereum.Subscription  
	done bool                   
	fail error                  
}
func (it *RoomFactoryRoomCreatedIterator) Next() bool {
	if it.fail != nil {
		return false
	}
	if it.done {
		select {
		case log := <-it.logs:
			it.Event = new(RoomFactoryRoomCreated)
			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
				it.fail = err
				return false
			}
			it.Event.Raw = log
			return true
		default:
			return false
		}
	}
	select {
	case log := <-it.logs:
		it.Event = new(RoomFactoryRoomCreated)
		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
			it.fail = err
			return false
		}
		it.Event.Raw = log
		return true
	case err := <-it.sub.Err():
		it.done = true
		it.fail = err
		return it.Next()
	}
}
func (it *RoomFactoryRoomCreatedIterator) Error() error {
	return it.fail
}
func (it *RoomFactoryRoomCreatedIterator) Close() error {
	it.sub.Unsubscribe()
	return nil
}
type RoomFactoryRoomCreated struct {
	Creator        common.Address
	Room           common.Address
	DepositedValue *big.Int
	Raw            types.Log  
}
func (_RoomFactory *RoomFactoryFilterer) FilterRoomCreated(opts *bind.FilterOpts, _creator []common.Address) (*RoomFactoryRoomCreatedIterator, error) {
	var _creatorRule []interface{}
	for _, _creatorItem := range _creator {
		_creatorRule = append(_creatorRule, _creatorItem)
	}
	logs, sub, err := _RoomFactory.contract.FilterLogs(opts, "RoomCreated", _creatorRule)
	if err != nil {
		return nil, err
	}
	return &RoomFactoryRoomCreatedIterator{contract: _RoomFactory.contract, event: "RoomCreated", logs: logs, sub: sub}, nil
}
func (_RoomFactory *RoomFactoryFilterer) WatchRoomCreated(opts *bind.WatchOpts, sink chan<- *RoomFactoryRoomCreated, _creator []common.Address) (event.Subscription, error) {
	var _creatorRule []interface{}
	for _, _creatorItem := range _creator {
		_creatorRule = append(_creatorRule, _creatorItem)
	}
	logs, sub, err := _RoomFactory.contract.WatchLogs(opts, "RoomCreated", _creatorRule)
	if err != nil {
		return nil, err
	}
	return event.NewSubscription(func(quit <-chan struct{}) error {
		defer sub.Unsubscribe()
		for {
			select {
			case log := <-logs:
				event := new(RoomFactoryRoomCreated)
				if err := _RoomFactory.contract.UnpackLog(event, "RoomCreated", log); err != nil {
					return err
				}
				event.Raw = log
				select {
				case sink <- event:
				case err := <-sub.Err():
					return err
				case <-quit:
					return nil
				}
			case err := <-sub.Err():
				return err
			case <-quit:
				return nil
			}
		}
	}), nil
}
type RoomFactoryUnpauseIterator struct {
	Event *RoomFactoryUnpause  
	contract *bind.BoundContract  
	event    string               
	logs chan types.Log         
	sub  ethereum.Subscription  
	done bool                   
	fail error                  
}
func (it *RoomFactoryUnpauseIterator) Next() bool {
	if it.fail != nil {
		return false
	}
	if it.done {
		select {
		case log := <-it.logs:
			it.Event = new(RoomFactoryUnpause)
			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
				it.fail = err
				return false
			}
			it.Event.Raw = log
			return true
		default:
			return false
		}
	}
	select {
	case log := <-it.logs:
		it.Event = new(RoomFactoryUnpause)
		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
			it.fail = err
			return false
		}
		it.Event.Raw = log
		return true
	case err := <-it.sub.Err():
		it.done = true
		it.fail = err
		return it.Next()
	}
}