コード例 #1
0
        static void LogMessage(IntPtr @session, IntPtr @data)
        {
            var context = GetListener(session);

            context.Listener.LogMessage(context.Session, SpotifyMarshalling.Utf8ToString(data));
        }
コード例 #2
0
        static void CredentialsBlobUpdated(IntPtr @session, IntPtr @blob)
        {
            var context = GetListener(session);

            context.Listener.CredentialsBlobUpdated(context.Session, SpotifyMarshalling.Utf8ToString(blob));
        }
コード例 #3
0
        static void MessageToUser(IntPtr @session, IntPtr @message)
        {
            var context = GetListener(session);

            context.Listener.MessageToUser(context.Session, SpotifyMarshalling.Utf8ToString(message));
        }
コード例 #4
0
 public static string ErrorMessage(SpotifyError error)
 {
     return(SpotifyMarshalling.Utf8ToString(NativeMethods.sp_error_message(error)));
 }
コード例 #5
0
 public static string BuildId()
 {
     return(SpotifyMarshalling.Utf8ToString(NativeMethods.sp_build_id()));
 }
コード例 #6
0
        static void track_message_changed(IntPtr @pl, int @position, IntPtr @message, IntPtr @userdata)
        {
            var context = GetListener(pl, userdata);

            context.Listener.TrackMessageChanged(context.Playlist, position, SpotifyMarshalling.Utf8ToString(message), context.Userdata);
        }
コード例 #7
0
        static void description_changed(IntPtr @pl, IntPtr @desc, IntPtr @userdata)
        {
            var context = GetListener(pl, userdata);

            context.Listener.DescriptionChanged(context.Playlist, SpotifyMarshalling.Utf8ToString(desc), context.Userdata);
        }