wechaty / dotnet-wechaty

.NET Wechaty is a Conversational SDK for Chatbot Makers Written in C#
Apache License 2.0
81 stars 29 forks source link

Room class has errors when rebuild the code #5

Closed kevincheng201903 closed 3 years ago

kevincheng201903 commented 4 years ago

image

kevincheng201903 commented 4 years ago

room = new Room(id, WechatyInstance, Puppet, _loggerForRoom, _name);

    /// <summary>
    /// init <see cref="Room"/>
    /// </summary>
    /// <param name="id"></param>
    /// <param name="wechaty"></param>
    /// <param name="logger"></param>
    /// <param name="name"></param>
    public Room([DisallowNull] string id,
                [DisallowNull] Wechaty wechaty,
                [DisallowNull] ILogger<Room> logger,
                [AllowNull] string? name = null) : base(wechaty, logger, name)
    {
        Id = id;
        if (Logger.IsEnabled(LogLevel.Trace))
        {
            Logger.LogTrace($"constructor({Id})");
        }
    }
kevincheng201903 commented 4 years ago

there are only four arguments in the Room constructor class,but you init the Room class with five arguments in RoomRepository class

GuoqiuZhong commented 4 years ago

I‘ve tried , the same error. I think it should be change like below. image

echofool commented 4 years ago

temporarily resolved at #9

Jesn commented 3 years ago

@kevincheng201903 wechaty 已更新,而且已出了一个基础版的dotnet-wechaty-getting-started 可以使用 https://github.com/wechaty/dotnet-wechaty-getting-started